xcraft-core-utils 4.3.0 → 4.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/lib/modules.js +3 -0
- package/package.json +1 -1
package/lib/modules.js
CHANGED
|
@@ -169,6 +169,9 @@ exports.extractAllJs = (libDir, modules) => {
|
|
|
169
169
|
const location = path.join(libDir, mod);
|
|
170
170
|
const files = xFs
|
|
171
171
|
.lsall(location, true)
|
|
172
|
+
.filter(
|
|
173
|
+
(file) => !/node_modules/.test(file.substring(location.length + 1))
|
|
174
|
+
)
|
|
172
175
|
.filter((file) => /\.js$/.test(file));
|
|
173
176
|
list = list.concat(files);
|
|
174
177
|
});
|