Skip to content

Commit 2808eb9

Browse files
committed
fix(cli): fix project name input error
1 parent a1ffd41 commit 2808eb9

File tree

3 files changed

+3
-22
lines changed

3 files changed

+3
-22
lines changed

.husky/commit-msg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/sh
22
. "$(dirname "$0")/_/husky.sh"
33

4-
yarn commitlint --edit
4+
npx commitlint --edit
55

66
# npm run build

common/config/rush/pnpm-lock.yaml

Lines changed: 0 additions & 19 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/init/src/prepare.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,8 +188,8 @@ export const getProjectInfo = async(args: InitArgs, templates: TemplateListItem[
188188
})
189189

190190
projectInfo = {
191-
name: values.projectName || targetDir,
192-
projectName: toLine(values.projectName) || toLine(targetDir),
191+
name: values.projectName || targetDir || args.projectName,
192+
projectName: toLine(values.projectName || targetDir || args.projectName),
193193
type,
194194
npmName,
195195
projectVersion,

0 commit comments

Comments
 (0)