@jayfong/x-server 2.94.0 → 2.94.1

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.
@@ -266,8 +266,8 @@ _yargs.default.command('dev', '开始开发', _ => _.positional('index', {
266
266
  });
267
267
  await new _api_generator.ApiGenerator({
268
268
  cwd: process.cwd(),
269
- include: argv.include?.flatMap(v => v.split(',')),
270
- exclude: argv.exclude?.flatMap(v => v.split(',')),
269
+ include: argv.include && (0, _vtils.castArray)(argv.include).flatMap(v => v.split(',')),
270
+ exclude: argv.exclude && (0, _vtils.castArray)(argv.exclude).flatMap(v => v.split(',')),
271
271
  name: argv.name
272
272
  }).start();
273
273
  }
package/lib/cli/cli.js CHANGED
@@ -264,8 +264,8 @@ yargs.command('dev', '开始开发', _ => _.positional('index', {
264
264
  });
265
265
  await new ApiGenerator({
266
266
  cwd: process.cwd(),
267
- include: argv.include?.flatMap(v => v.split(',')),
268
- exclude: argv.exclude?.flatMap(v => v.split(',')),
267
+ include: argv.include && castArray(argv.include).flatMap(v => v.split(',')),
268
+ exclude: argv.exclude && castArray(argv.exclude).flatMap(v => v.split(',')),
269
269
  name: argv.name
270
270
  }).start();
271
271
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jayfong/x-server",
3
- "version": "2.94.0",
3
+ "version": "2.94.1",
4
4
  "license": "ISC",
5
5
  "sideEffects": false,
6
6
  "main": "lib/_cjs/index.js",