Skip to content

Commit

Permalink
feat(plugin-generator): create-mor 用户 git 信息改成非必选, 不做输入的校验 (#15)
Browse files Browse the repository at this point in the history
* feat(plugin-generator): create.ts 移除询问用户 git 相关的问题

* Revert "feat(plugin-generator): create.ts 移除询问用户 git 相关的问题"

This reverts commit 61b1092.

* feat(plugin-generator): 用户 git 信息改成非必选, 不做输入的校验
  • Loading branch information
wangjunjia committed Apr 18, 2023
1 parent d389156 commit fd26ef5
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions packages/plugin-generator/src/create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,22 +152,19 @@ export default async function create(
type: 'text',
name: 'user',
message: '用户名',
initial: gitUser,
validate: (v) => !!v
initial: gitUser
},
{
type: 'text',
name: 'email',
message: '邮箱',
initial: gitEmail,
validate: (v) => !!v
initial: gitEmail
},
{
type: 'text',
name: 'git',
message: '请输入 Git 仓库地址',
initial: '',
validate: (v) => v != null
initial: ''
},
{
name: 'npmClient',
Expand Down

0 comments on commit fd26ef5

Please sign in to comment.