muaddib-scanner 2.2.21 → 2.2.22
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/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const fs = require('fs');
|
|
2
2
|
const path = require('path');
|
|
3
3
|
const acorn = require('acorn');
|
|
4
|
-
const { findFiles } = require('../utils');
|
|
4
|
+
const { findFiles, EXCLUDED_DIRS } = require('../utils');
|
|
5
5
|
const { ACORN_OPTIONS: BASE_ACORN_OPTIONS } = require('../shared/constants.js');
|
|
6
6
|
|
|
7
7
|
// --- Sensitive source patterns ---
|
|
@@ -33,7 +33,7 @@ function buildModuleGraph(packagePath) {
|
|
|
33
33
|
const graph = {};
|
|
34
34
|
const files = findFiles(packagePath, {
|
|
35
35
|
extensions: ['.js', '.mjs', '.cjs'],
|
|
36
|
-
excludedDirs:
|
|
36
|
+
excludedDirs: EXCLUDED_DIRS,
|
|
37
37
|
});
|
|
38
38
|
for (const absFile of files) {
|
|
39
39
|
const relFile = toRel(absFile, packagePath);
|