@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,SAUxB,CAAA"}
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@liuli-util/cli",
3
- "version": "3.20.1",
3
+ "version": "3.20.2",
4
4
  "description": "一个针对于库和 CLI 应用程序打包的零配置 CLI",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.esm.js",
@@ -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' | 'initSync'>) => {
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
  })