Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
fix: Correcting finish message to show the package's
name, rather than the safe name
  • Loading branch information
rschristian committed Oct 7, 2021
commit b9ca946b5901d9c6937a0d4b6392965098494aed
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,8 @@ export default async function microbundle(inputOptions) {
const targetDir = relative(cwd, dirname(options.output)) || '.';
const sourceExist = options.input.length > 0;
const banner = sourceExist
? blue(`Build "${options.name}" to ${targetDir}:`)
: red(`Error: No entry module found for "${options.name}"`);
? blue(`Build "${options.pkg.name}" to ${targetDir}:`)
: red(`Error: No entry module found for "${options.pkg.name}"`);
return {
output: `${banner}\n ${out.join('\n ')}`,
};
Expand Down
Loading