@liuli-util/cli 3.20.0 → 3.20.1
Sign up to get free protection for your applications and to get access to all the features.
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/generate/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAU,MAAM,WAAW,CAAA;AAW3C,eAAO,MAAM,eAAe,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/generate/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAU,MAAM,WAAW,CAAA;AAW3C,eAAO,MAAM,eAAe,SAUxB,CAAA"}
|
package/package.json
CHANGED
@@ -13,11 +13,10 @@ export const generateCommand = new Command()
|
|
13
13
|
.command('generate [dest]')
|
14
14
|
.description('生成一些初始项目')
|
15
15
|
.addOption(templateOption)
|
16
|
-
.option('--init-sync', '是否同步初始化', true)
|
16
|
+
.option('--init-sync [initSync]', '是否同步初始化', true)
|
17
17
|
.action(async (dest, options: Pick<GenerateConfig, 'template' | 'initSync'>) => {
|
18
18
|
await generateProgram.generate({
|
19
19
|
...options,
|
20
20
|
dest: dest,
|
21
|
-
initSync: options.initSync,
|
22
21
|
})
|
23
22
|
})
|