@cabloy/module-glob 5.0.8 → 5.0.10
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/dist/index.js +12 -8
- package/dist/interface.d.ts +2 -2
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -290,19 +290,23 @@ function __logSuites(context, log) {
|
|
|
290
290
|
}
|
|
291
291
|
function __getDisabledModules(disabledModules) {
|
|
292
292
|
const disabledModulesMap = {};
|
|
293
|
-
if (disabledModules
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
293
|
+
if (!disabledModules)
|
|
294
|
+
return disabledModulesMap;
|
|
295
|
+
if (typeof disabledModules === 'string')
|
|
296
|
+
disabledModules = disabledModules.split(',');
|
|
297
|
+
for (const moduleName of disabledModules) {
|
|
298
|
+
disabledModulesMap[moduleName] = true;
|
|
297
299
|
}
|
|
298
300
|
return disabledModulesMap;
|
|
299
301
|
}
|
|
300
302
|
function __getDisabledSuites(disabledSuites) {
|
|
301
303
|
const disabledSuitesMap = {};
|
|
302
|
-
if (disabledSuites
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
304
|
+
if (!disabledSuites)
|
|
305
|
+
return disabledSuitesMap;
|
|
306
|
+
if (typeof disabledSuites === 'string')
|
|
307
|
+
disabledSuites = disabledSuites.split(',');
|
|
308
|
+
for (const suiteName of disabledSuites) {
|
|
309
|
+
disabledSuitesMap[suiteName] = true;
|
|
306
310
|
}
|
|
307
311
|
return disabledSuitesMap;
|
|
308
312
|
}
|
package/dist/interface.d.ts
CHANGED
|
@@ -2,8 +2,8 @@ import { IModule, ISuite, TypeProjectMode } from '@cabloy/module-info';
|
|
|
2
2
|
export interface IModuleGlobOptions {
|
|
3
3
|
projectMode: TypeProjectMode;
|
|
4
4
|
projectPath: string;
|
|
5
|
-
disabledModules?: string[];
|
|
6
|
-
disabledSuites?: string[];
|
|
5
|
+
disabledModules?: string[] | string;
|
|
6
|
+
disabledSuites?: string[] | string;
|
|
7
7
|
log?: boolean;
|
|
8
8
|
}
|
|
9
9
|
export interface IModuleGlobContext {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cabloy/module-glob",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.10",
|
|
4
4
|
"description": "cabloy module-glob",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
"author": "zhennann",
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"boxen": "^4.2.0",
|
|
33
|
-
"egg-born-utils": "^1.
|
|
34
|
-
"@cabloy/module-info": "^1.0.
|
|
33
|
+
"egg-born-utils": "^1.2.0",
|
|
34
|
+
"@cabloy/module-info": "^1.0.14"
|
|
35
35
|
},
|
|
36
36
|
"scripts": {
|
|
37
37
|
"lint": "eslint ."
|