Skip to content

Commit a94e215

Browse files
committed
fix: npmName is empty when create template (#528)
* fix: npmName is empty when create template * chore: changelog
1 parent 8edeefb commit a94e215

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/silly-ears-pump.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@ice/create-pkg': patch
3+
---
4+
5+
fix: npm name is empty when create template

packages/create-pkg/src/index.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ async function create(dirPath: string, dirname: string, options: CliOptions): Pr
7575
templateNpmName = await inquireTemplateNpmName();
7676
}
7777

78-
const npmName = options.npmName ?? templateNpmName.startsWith('@ice/template-pkg-monorepo') ? '' : await inquirePackageName();
78+
const npmName = options.npmName ?? (templateNpmName.startsWith('@ice/template-pkg-monorepo') ? '' : await inquirePackageName());
7979

8080
await downloadMaterialTemplate(tempDir, templateNpmName);
8181

0 commit comments

Comments
 (0)