@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.
- package/lib/_cjs/cli/cli.js +2 -2
- package/lib/cli/cli.js +2 -2
- package/package.json +1 -1
package/lib/_cjs/cli/cli.js
CHANGED
|
@@ -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
|
|
270
|
-
exclude: argv.exclude
|
|
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
|
|
268
|
-
exclude: argv.exclude
|
|
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
|
}
|