Skip to content

Commit

Permalink
fix: Corrects completion message to show the package's name, rather t…
Browse files Browse the repository at this point in the history
…han the safe name (#895)
  • Loading branch information
rschristian authored Oct 11, 2021
1 parent d94bd97 commit 26f382a
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 54 deletions.
5 changes: 5 additions & 0 deletions .changeset/thirty-bats-help.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'microbundle': patch
---

Completion message shows pkg's actual name, rather than safe name
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

0 comments on commit 26f382a

Please sign in to comment.