forked from sverweij/dependency-cruiser
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
271 lines (271 loc) · 13.9 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
{
"name": "dependency-cruiser",
"version": "12.11.0",
"description": "Validate and visualize dependencies. With your rules. JavaScript, TypeScript, CoffeeScript. ES6, CommonJS, AMD.",
"keywords": [
"static analysis",
"circular",
"dependencies",
"typescript",
"javascript",
"coffeescript",
"ES6",
"ES2015",
"AMD",
"CommonJS",
"validation",
"spelunking"
],
"author": {
"name": "Sander Verweij",
"url": "https://sverweij.github.io"
},
"contributors": [
{
"name": "Klaus Meinhardt",
"url": "https://github.com/ajafff"
}
],
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/sverweij/dependency-cruiser"
},
"bugs": {
"url": "https://github.com/sverweij/dependency-cruiser/issues"
},
"homepage": "https://github.com/sverweij/dependency-cruiser",
"bin": {
"dependency-cruiser": "bin/dependency-cruise.js",
"dependency-cruise": "bin/dependency-cruise.js",
"depcruise": "bin/dependency-cruise.js",
"depcruise-baseline": "bin/depcruise-baseline.js",
"depcruise-fmt": "bin/depcruise-fmt.js",
"depcruise-wrap-stream-in-html": "bin/wrap-stream-in-html.js"
},
"main": "src/main/index.js",
"exports": {
".": "./src/main/index.js",
"./config-utl/extract-babel-config": "./src/config-utl/extract-babel-config.js",
"./config-utl/extract-depcruise-config": "./src/config-utl/extract-depcruise-config/index.js",
"./config-utl/extract-ts-config": "./src/config-utl/extract-ts-config.js",
"./config-utl/extract-webpack-resolve-config": "./src/config-utl/extract-webpack-resolve-config.js",
"./sample-reporter-plugin": "./configs/plugins/stats-reporter-plugin.js",
"./sample-3d-reporter-plugin": "./configs/plugins/3d-reporter-plugin.js",
"./mermaid-reporter-plugin": "./src/report/mermaid.js"
},
"types": "types/dependency-cruiser.d.ts",
"files": [
"bin",
"configs/**/*.js",
"src",
"!src/**/*.json",
"!src/**/*.hbs",
"!src/**/*.md",
"!**/*.DS_Store",
"types/*.d.ts",
"LICENSE",
"package.json",
"README.md"
],
"scripts": {
"build": "make build",
"build:clean": "make clean",
"check": "npm-run-all build lint depcruise test:cover",
"check:full": "npm-run-all check test:glob test:yarn-pnp",
"depcruise": "node ./bin/dependency-cruise.js src bin test configs types tools --config --ignore-known",
"depcruise:all": "node ./bin/dependency-cruise.js src bin test configs types tools --config",
"depcruise:baseline": "node ./bin/depcruise-baseline.js src bin test configs types tools",
"depcruise:explain": "node ./bin/dependency-cruise.js src bin test configs types tools --output-type err-long --config --progress none",
"depcruise:graph:doc": "npm-run-all depcruise:graph:doc:json --parallel depcruise:graph:doc:fmt-* depcruise:graph:doc:samples",
"depcruise:graph:doc:json": "node ./bin/dependency-cruise.js bin src test --config --output-type json --output-to tmp_graph_deps.json --progress",
"depcruise:graph:doc:fmt-detail": "./bin/depcruise-fmt.js -T dot -f - tmp_graph_deps.json | dot -T svg | tee doc/real-world-samples/dependency-cruiser-without-node_modules.svg | node bin/wrap-stream-in-html.js > docs/dependency-cruiser-dependency-graph.html",
"depcruise:graph:doc:fmt-archi": "./bin/depcruise-fmt.js -T archi -f - tmp_graph_deps.json | dot -T svg -Gordering=in -Grankdir=TD | tee doc/real-world-samples/dependency-cruiser-archi-graph.svg | node bin/wrap-stream-in-html.js > docs/dependency-cruiser-archi-graph.html",
"depcruise:graph:doc:fmt-dir": "./bin/depcruise-fmt.js -T ddot -f - tmp_graph_deps.json | dot -T svg -Grankdir=TD | tee doc/real-world-samples/dependency-cruiser-dir-graph.svg | node bin/wrap-stream-in-html.js > docs/dependency-cruiser-dir-graph.html",
"depcruise:graph:doc:fmt-schema": "cd tools/schema && node ../../bin/dependency-cruise.js . --config --output-type dot | dot -T svg | tee ../overview.svg | node ../../bin/wrap-stream-in-html.js > ../../docs/schema-overview.html && cd -",
"depcruise:graph:doc:fmt-types": "cd types && node ../bin/dependency-cruise.js . --ts-pre-compilation-deps --config --output-type dot | dot -T svg > overview.svg && cd -",
"depcruise:graph:doc:samples": "sh tools/generate-samples.sh",
"depcruise:graph:mermaid": "node ./bin/dependency-cruise.js bin src --include-only ^src/ --config --collapse 2 --output-type mermaid",
"depcruise:graph:mermaid:diff": "node ./bin/dependency-cruise.js bin src test types tools --config configs/.dependency-cruiser-unlimited.json --output-type mermaid --reaches \"$(watskeburt $SHA)\"",
"depcruise:graph:view": "node ./bin/dependency-cruise.js bin src --prefix vscode:https://file/$(pwd)/ --config configs/.dependency-cruiser-show-metrics-config.json --output-type dot --progress cli-feedback --highlight \"$(watskeburt develop)\" | dot -T svg | node ./bin/wrap-stream-in-html.js | browser",
"depcruise:graph:view:diff": "node ./bin/dependency-cruise.js bin src test --prefix vscode:https://file/$(pwd)/ --config configs/.dependency-cruiser-unlimited.json --output-type dot --progress cli-feedback --reaches \"$(watskeburt develop)\" | dot -T svg | node ./bin/wrap-stream-in-html.js | browser",
"depcruise:report": "node ./bin/dependency-cruise.js src bin test configs types --output-type err-html --config configs/.dependency-cruiser-show-metrics-config.json --output-to dependency-violations.html",
"depcruise:report:view": "node ./bin/dependency-cruise.js src bin test configs types --output-type err-html --config configs/.dependency-cruiser-show-metrics-config.json --output-to - | browser",
"depcruise:focus": "node ./bin/dependency-cruise.js src bin test configs types tools --progress --config --output-type text --focus",
"depcruise:reaches": "node ./bin/dependency-cruise.js src bin test configs types tools --progress --config configs/.dependency-cruiser-unlimited.json --output-type text --reaches",
"format": "prettier --loglevel warn --write \"src/**/*.js\" \"configs/**/*.js\" \"tools/**/*.mjs\" \"bin/*\" \"types/*.d.ts\" \"test/**/*.spec.{cjs,js}\" \"test/**/*.{spec,utl}.mjs\"",
"format:check": "prettier --loglevel warn --check \"src/**/*.js\" \"configs/**/*.js\" \"tools/**/*.mjs\" \"bin/*\" \"types/*.d.ts\" \"test/**/*.spec.{cjs,js}\" \"test/**/*.{spec,utl}.mjs\"",
"lint": "npm-run-all --parallel --aggregate-output lint:eslint format:check lint:types",
"lint:eslint": "eslint bin/dependency-cruise.js bin src test configs tools/**/*.mjs --cache --cache-location node_modules/.cache/eslint/",
"lint:eslint:fix": "eslint --fix bin src test configs tools/**/*.mjs --cache --cache-location node_modules/.cache/eslint/",
"lint:eslint:clear-caches": "rm -rf node_modules/.cache/eslint/",
"lint:fix": "npm-run-all lint:eslint:fix format lint:types:fix",
"lint:types": "npm-run-all lint:types:tsc lint:types:lint",
"lint:types:tsc": "tsc --project types/tsconfig.json",
"lint:types:lint": "eslint --no-ignore --config types/.eslintrc.json types/*.d.ts",
"lint:types:fix": "eslint --no-ignore --config types/.eslintrc.json --fix types/*.d.ts",
"prepare": "husky install",
"scm:push": "run-p --aggregate-output scm:push:*",
"scm:push:bitbucket-mirror": "run-p --aggregate-output scm:push:bitbucket-mirror:*",
"scm:push:bitbucket-mirror:commits": "git push bitbucket-mirror",
"scm:push:bitbucket-mirror:tags": "git push --tags bitbucket-mirror",
"scm:push:github": "run-p --aggregate-output scm:push:github:*",
"scm:push:github:commits": "git push",
"scm:push:github:tags": "git push --tags",
"scm:push:gitlab-mirror": "run-p --aggregate-output scm:push:gitlab-mirror:*",
"scm:push:gitlab-mirror:commits": "git push gitlab-mirror",
"scm:push:gitlab-mirror:tags": "git push --tags gitlab-mirror",
"scm:stage": "git add .",
"test": "LANG=en_US.UTF-8 mocha",
"test:i": "LANG=en_US.UTF-8 mocha --grep \"^\\[[I]\\]\"",
"test:u": "LANG=en_US.UTF-8 mocha --grep \"^\\[[U]\\]\"",
"test:e": "LANG=en_US.UTF-8 mocha --grep \"^\\[[E]\\]\"",
"test:cover": "LANG=en_US.UTF-8 c8 mocha",
"test:glob": "set -f && test \"`bin/dependency-cruise.js test/extract/__mocks__/gather-globbing/packages/**/src/**/*.js | grep \"no dependency violations found\"`\" = \"✔ no dependency violations found (6 modules, 0 dependencies cruised)\"",
"test:yarn-pnp": "npm-run-all test:yarn-pnp:cleanup test:yarn-pnp:pack test:yarn-pnp:copy test:yarn-pnp:install test:yarn-pnp:version test:yarn-pnp:run test:yarn-pnp:test test:yarn-pnp:cleanup",
"test:yarn-pnp:pack": "npm pack",
"test:yarn-pnp:copy": "shx cp -r test/integration/yarn-pnp.template test/integration/yarn-pnp.testing-ground",
"test:yarn-pnp:install": "cd test/integration/yarn-pnp.testing-ground && yarn && yarn add -D ../../../dependency-cruiser*.tgz",
"test:yarn-pnp:version": "cd test/integration/yarn-pnp.testing-ground && yarn dependency-cruise:version",
"test:yarn-pnp:run": "cd test/integration/yarn-pnp.testing-ground && yarn dependency-cruise:json",
"test:yarn-pnp:test": "cd test/integration/yarn-pnp.testing-ground && yarn test",
"test:yarn-pnp:cleanup": "shx rm -rf test/integration/yarn-pnp.testing-ground dependency-cruiser*.tgz",
"test:load": "hyperfine --warmup 3 --runs 30 \"bin/dependency-cruise.js src bin test configs types tools --ignore-known --validate --no-cache --no-progress\"",
"test:load:short": "hyperfine --warmup 1 --runs 5 \"bin/dependency-cruise.js src bin test configs types tools --ignore-known --validate --no-cache --no-progress\"",
"test:watch": "mocha --watch --watch-extensions=json --reporter=min test/\\*\\*/\\*.spec.js",
"update-dependencies": "npm-run-all upem:update upem:install build:clean build lint:eslint:clear-caches lint:fix depcruise test:cover",
"upem-outdated": "npm outdated --json --long | upem --dry-run",
"upem:install": "npm install",
"upem:update": "npm outdated --json --long | upem | pbcopy && pbpaste",
"version": "npm-run-all build depcruise:graph:doc scm:stage"
},
"dependencies": {
"acorn": "8.8.2",
"acorn-jsx": "5.3.2",
"acorn-jsx-walk": "2.0.0",
"acorn-loose": "8.3.0",
"acorn-walk": "8.2.0",
"ajv": "8.12.0",
"chalk": "^4.1.2",
"commander": "10.0.0",
"enhanced-resolve": "5.12.0",
"figures": "^3.2.0",
"get-stream": "^6.0.1",
"glob": "7.2.0",
"handlebars": "4.7.7",
"ignore": "5.2.4",
"indent-string": "^4.0.0",
"interpret": "^3.1.0",
"is-installed-globally": "0.4.0",
"json5": "2.2.3",
"lodash": "4.17.21",
"prompts": "2.4.2",
"rechoir": "^0.8.0",
"safe-regex": "2.1.1",
"semver": "^7.3.7",
"semver-try-require": "6.1.0",
"teamcity-service-messages": "0.1.14",
"tsconfig-paths-webpack-plugin": "4.0.1",
"watskeburt": "0.10.1",
"wrap-ansi": "^7.0.0"
},
"devDependencies": {
"@babel/core": "7.21.3",
"@babel/plugin-transform-modules-commonjs": "7.21.2",
"@babel/preset-typescript": "7.21.0",
"@swc/core": "1.3.41",
"@types/lodash": "4.14.191",
"@types/node": "18.15.3",
"@types/prompts": "2.4.3",
"@typescript-eslint/eslint-plugin": "5.55.0",
"@typescript-eslint/parser": "5.55.0",
"@vue/compiler-sfc": "3.2.47",
"c8": "7.13.0",
"chai": "4.3.7",
"chai-json-schema": "1.5.1",
"coffeescript": "2.7.0",
"eslint": "8.36.0",
"eslint-config-moving-meadow": "4.0.2",
"eslint-config-prettier": "8.7.0",
"eslint-plugin-budapestian": "5.0.1",
"eslint-plugin-eslint-comments": "3.2.0",
"eslint-plugin-import": "2.27.5",
"eslint-plugin-mocha": "10.1.0",
"eslint-plugin-node": "11.1.0",
"eslint-plugin-security": "1.7.1",
"eslint-plugin-unicorn": "^46.0.0",
"husky": "8.0.3",
"intercept-stdout": "0.1.2",
"lint-staged": "13.2.0",
"mocha": "10.2.0",
"normalize-newline": "^3.0.0",
"npm-run-all": "4.1.5",
"prettier": "2.8.4",
"proxyquire": "2.1.3",
"shx": "0.3.4",
"svelte": "3.57.0",
"symlink-dir": "5.1.1",
"typescript": "5.0.2",
"upem": "7.3.2",
"vue-template-compiler": "2.7.14",
"yarn": "1.22.19"
},
"upem": {
"policies": [
{
"package": "chalk",
"policy": "wanted",
"because": "version 5 only exports esm - and we use cjs and don't transpile"
},
{
"package": "figures",
"policy": "wanted",
"because": "version 4 only exports esm - and we use cjs and don't transpile"
},
{
"package": "glob",
"policy": "pin",
"because": "from version 7.2.1 behavior on windows changes - in a potentially breaking fashion. Wait with upgrading until we're majoring or from when there's a vuln in 7.2.0"
},
{
"package": "indent-string",
"policy": "wanted",
"because": "version 5 only exports esm - and we use cjs and don't transpile"
},
{
"package": "interpret",
"policy": "wanted",
"because": "we want to keep interpret ~similar to what webpack-cli uses (which is ^3.1.0 since 2022-11-15)"
},
{
"package": "normalize-newline",
"policy": "wanted",
"because": "version 4 only exports esm - and we use cjs and don't transpile (this only used in unit tests - but one of'em is a cjs one ...)"
},
{
"package": "rechoir",
"policy": "wanted",
"because": "we want to keep rechoir ~similar to what webpack-cli uses (which is ^0.8.0 since 2022-11-15))"
},
{
"package": "wrap-ansi",
"policy": "wanted",
"because": "version 8 only exports esm - and we use cjs and don't transpile"
}
]
},
"engines": {
"node": "^14||^16||>=18"
},
"supportedTranspilers": {
"babel": ">=7.0.0 <8.0.0",
"coffee-script": ">=1.0.0 <2.0.0",
"coffeescript": ">=1.0.0 <3.0.0",
"livescript": ">=1.0.0 <2.0.0",
"svelte": ">=3.0.0 <4.0.0",
"swc": ">=1.0.0 <2.0.0",
"typescript": ">=2.0.0 <6.0.0",
"vue-template-compiler": ">=2.0.0 <3.0.0",
"@vue/compiler-sfc": ">=3.0.0 <4.0.0"
}
}