@cabloy/module-glob 5.2.57 → 5.3.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/LICENSE CHANGED
File without changes
package/README.md CHANGED
File without changes
package/dist/index.js CHANGED
@@ -230,8 +230,8 @@ function __orderDependencies(context, modules, module, moduleRelativeName) {
230
230
  let enabled = true;
231
231
  const dependencies = module.package[moduleNode].dependencies;
232
232
  for (const key in dependencies) {
233
+ const subModule = modules[key];
233
234
  if (context.options.check !== false) {
234
- const subModule = modules[key];
235
235
  if (!subModule) {
236
236
  const message = `${chalk.keyword('orange')(`module ${moduleRelativeName} disabled`)}, because ${chalk.keyword('cyan')(`module ${key} not exists`)}`;
237
237
  console.log(`\n${boxen(message, boxenOptions)}\n`);
@@ -244,7 +244,7 @@ function __orderDependencies(context, modules, module, moduleRelativeName) {
244
244
  process.exit(0);
245
245
  }
246
246
  }
247
- if (!__pushModule(context, modules, key)) {
247
+ if (subModule && !__pushModule(context, modules, key)) {
248
248
  enabled = false;
249
249
  }
250
250
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cabloy/module-glob",
3
- "version": "5.2.57",
4
- "gitHead": "0eab9dc4a5622caffe89e7b1b3f02c08ccbc4c4b",
3
+ "version": "5.3.1",
4
+ "gitHead": "991189da4443b789fcf77872990b901ccf43bccb",
5
5
  "description": "cabloy module-glob",
6
6
  "keywords": [
7
7
  "cabloy",
@@ -25,17 +25,20 @@
25
25
  "publishConfig": {
26
26
  "access": "public"
27
27
  },
28
+ "scripts": {
29
+ "clean": "rimraf dist tsconfig.tsbuildinfo",
30
+ "tsc:publish": "npm run clean && vona :bin:buildGeneral && tsc",
31
+ "prepublishOnly": "npm run tsc:publish",
32
+ "prepack": "clean-package",
33
+ "postpack": "clean-package restore"
34
+ },
28
35
  "dependencies": {
29
36
  "@cabloy/module-info": "^2.0.0",
30
- "@cabloy/utils": "^2.0.24",
37
+ "@cabloy/utils": "^2.1.1",
31
38
  "boxen": "^4.2.0",
32
39
  "chalk": "^3.0.0",
33
40
  "fs-extra": "^11.3.0",
34
41
  "globby": "^16.0.0",
35
42
  "semver": "^7.7.1"
36
- },
37
- "scripts": {
38
- "clean": "rimraf dist tsconfig.tsbuildinfo",
39
- "tsc:publish": "npm run clean && vona :bin:buildGeneral && tsc"
40
43
  }
41
- }
44
+ }