xcraft-core-utils 4.3.3 → 4.3.4

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.
Files changed (2) hide show
  1. package/lib/modules.js +5 -3
  2. package/package.json +1 -1
package/lib/modules.js CHANGED
@@ -105,9 +105,11 @@ exports.extractConfigDeps = (libDir, configJson) => {
105
105
  return;
106
106
  }
107
107
 
108
- serverCfg.modules.forEach((mod) => {
109
- deps[mod] = true;
110
- });
108
+ serverCfg.modules
109
+ .filter((mod) => fse.existsSync(path.join(libDir, mod)))
110
+ .forEach((mod) => {
111
+ deps[mod] = true;
112
+ });
111
113
  });
112
114
 
113
115
  if (!Object.keys(deps).length) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xcraft-core-utils",
3
- "version": "4.3.3",
3
+ "version": "4.3.4",
4
4
  "description": "Xcraft utils",
5
5
  "main": "index.js",
6
6
  "engines": {