Skip to content

Commit

Permalink
fix(cli): fix project name input error
Browse files Browse the repository at this point in the history
  • Loading branch information
yzh990918 committed Nov 28, 2022
1 parent a1ffd41 commit 2808eb9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 22 deletions.
2 changes: 1 addition & 1 deletion .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

yarn commitlint --edit
npx commitlint --edit

# npm run build
19 changes: 0 additions & 19 deletions common/config/rush/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions packages/init/src/prepare.ts
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,8 @@ export const getProjectInfo = async(args: InitArgs, templates: TemplateListItem[
})

projectInfo = {
name: values.projectName || targetDir,
projectName: toLine(values.projectName) || toLine(targetDir),
name: values.projectName || targetDir || args.projectName,
projectName: toLine(values.projectName || targetDir || args.projectName),
type,
npmName,
projectVersion,
Expand Down

0 comments on commit 2808eb9

Please sign in to comment.