Skip to content

Commit 26f382a

Browse files
authored
fix: Corrects completion message to show the package's name, rather than the safe name (#895)
1 parent d94bd97 commit 26f382a

File tree

3 files changed

+59
-54
lines changed

3 files changed

+59
-54
lines changed

.changeset/thirty-bats-help.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'microbundle': patch
3+
---
4+
5+
Completion message shows pkg's actual name, rather than safe name

src/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,8 @@ export default async function microbundle(inputOptions) {
133133
const targetDir = relative(cwd, dirname(options.output)) || '.';
134134
const sourceExist = options.input.length > 0;
135135
const banner = sourceExist
136-
? blue(`Build "${options.name}" to ${targetDir}:`)
137-
: red(`Error: No entry module found for "${options.name}"`);
136+
? blue(`Build "${options.pkg.name}" to ${targetDir}:`)
137+
: red(`Error: No entry module found for "${options.pkg.name}"`);
138138
return {
139139
output: `${banner}\n ${out.join('\n ')}`,
140140
};

0 commit comments

Comments
 (0)