@liuli-util/cli 3.20.1 → 3.20.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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,SAWxB,CAAA"}
|
package/package.json
CHANGED
@@ -13,10 +13,11 @@ export const generateCommand = new Command()
|
|
13
13
|
.command('generate [dest]')
|
14
14
|
.description('生成一些初始项目')
|
15
15
|
.addOption(templateOption)
|
16
|
-
.option('--init-sync [initSync]', '是否同步初始化', true)
|
17
|
-
.action(async (dest, options: Pick<GenerateConfig, 'template' | '
|
16
|
+
.option('--init-sync [initSync]', '是否同步初始化', 'true')
|
17
|
+
.action(async (dest, options: Pick<GenerateConfig, 'template'> & { initSync: 'true' | 'false' }) => {
|
18
18
|
await generateProgram.generate({
|
19
19
|
...options,
|
20
|
+
initSync: options.initSync === 'true',
|
20
21
|
dest: dest,
|
21
22
|
})
|
22
23
|
})
|