dependency-tree 11.4.0 → 11.4.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/bin/cli.js +2 -4
- package/package.json +14 -6
package/bin/cli.js
CHANGED
|
@@ -27,16 +27,14 @@ const options = {
|
|
|
27
27
|
tsConfig: cliOptions.tsConfig
|
|
28
28
|
};
|
|
29
29
|
|
|
30
|
-
let tree;
|
|
31
|
-
|
|
32
30
|
if (cliOptions.listForm) {
|
|
33
|
-
tree = dependencyTree.toList(options);
|
|
31
|
+
const tree = dependencyTree.toList(options);
|
|
34
32
|
|
|
35
33
|
for (const node of tree) {
|
|
36
34
|
console.log(node);
|
|
37
35
|
}
|
|
38
36
|
} else {
|
|
39
|
-
tree = dependencyTree(options);
|
|
37
|
+
const tree = dependencyTree(options);
|
|
40
38
|
|
|
41
39
|
console.log(JSON.stringify(tree));
|
|
42
40
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dependency-tree",
|
|
3
|
-
"version": "11.4.
|
|
3
|
+
"version": "11.4.1",
|
|
4
4
|
"description": "Get the dependency tree of a module",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"scripts": {
|
|
17
17
|
"lint": "xo",
|
|
18
18
|
"fix": "xo --fix",
|
|
19
|
-
"mocha": "mocha",
|
|
19
|
+
"mocha": "mocha \"test/*.test.mjs\"",
|
|
20
20
|
"test": "npm run lint && npm run mocha",
|
|
21
21
|
"test:ci": "c8 npm run mocha"
|
|
22
22
|
},
|
|
@@ -50,8 +50,8 @@
|
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
52
|
"commander": "^12.1.0",
|
|
53
|
-
"filing-cabinet": "^5.
|
|
54
|
-
"precinct": "^12.
|
|
53
|
+
"filing-cabinet": "^5.3.0",
|
|
54
|
+
"precinct": "^12.3.1",
|
|
55
55
|
"typescript": "^5.9.3"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"debug": "^4.4.3",
|
|
60
60
|
"mocha": "^11.7.5",
|
|
61
61
|
"mock-fs": "^5.5.0",
|
|
62
|
-
"resolve": "^1.22.
|
|
62
|
+
"resolve": "^1.22.12",
|
|
63
63
|
"sinon": "^19.0.5",
|
|
64
64
|
"xo": "^0.60.0"
|
|
65
65
|
},
|
|
@@ -103,6 +103,14 @@
|
|
|
103
103
|
"unicorn/prefer-module": "off",
|
|
104
104
|
"unicorn/prefer-top-level-await": "off",
|
|
105
105
|
"unicorn/prevent-abbreviations": "off"
|
|
106
|
-
}
|
|
106
|
+
},
|
|
107
|
+
"overrides": [
|
|
108
|
+
{
|
|
109
|
+
"files": "test/**/*.{c,m}js",
|
|
110
|
+
"envs": [
|
|
111
|
+
"mocha"
|
|
112
|
+
]
|
|
113
|
+
}
|
|
114
|
+
]
|
|
107
115
|
}
|
|
108
116
|
}
|