dependency-cruiser 10.0.2 → 10.0.6
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/depcruise-fmt.js +3 -3
- package/bin/dependency-cruise.js +3 -3
- package/bin/wrap-stream-in-html.js +1 -5
- package/package.json +32 -55
- package/src/cli/defaults.js +15 -0
- package/src/cli/format.js +0 -1
- package/src/cli/index.js +1 -1
- package/src/cli/init-config/config.js.template.js +1 -106
- package/src/cli/init-config/index.js +3 -2
- package/src/cli/init-config/normalize-init-options.js +2 -2
- package/src/cli/init-config/write-config.js +3 -2
- package/src/cli/init-config/write-run-scripts-to-manifest.js +1 -1
- package/src/cli/normalize-options.js +1 -1
- package/src/cli/tools/wrap-stream-in-html.js +25 -20
- package/src/cli/validate-node-environment.js +3 -3
- package/src/config-utl/extract-babel-config.js +2 -3
- package/src/config-utl/extract-ts-config.js +5 -7
- package/src/enrich/derive/reachable/index.js +2 -8
- package/src/extract/ast-extractors/extract-typescript-deps.js +4 -7
- package/src/extract/ast-extractors/swc-dependency-visitor.js +14 -11
- package/src/extract/parse/to-swc-ast.js +3 -4
- package/src/extract/parse/to-typescript-ast.js +3 -4
- package/src/extract/transpile/babel-wrap.js +2 -2
- package/src/extract/transpile/coffeescript-wrap.js +5 -4
- package/src/extract/transpile/livescript-wrap.js +5 -5
- package/src/extract/transpile/meta.js +1 -1
- package/src/extract/transpile/svelte-wrap.js +3 -1
- package/src/extract/transpile/typescript-wrap.js +3 -4
- package/src/extract/transpile/vue-template-wrap.js +3 -1
- package/src/main/index.js +1 -1
- package/src/main/options/defaults.js +10 -0
- package/src/main/options/normalize.js +1 -1
- package/src/main/rule-set/validate.js +1 -1
- package/src/meta.js +18 -0
- package/src/report/dot/default-theme.js +145 -0
- package/src/report/dot/dot.template.js +1 -199
- package/src/report/dot/theming.js +3 -3
- package/src/report/error-html/error-html.template.js +1 -132
- package/src/report/error-html/utl.js +1 -1
- package/src/report/html/html.template.js +1 -118
- package/src/schema/README.md +2 -2
- package/src/schema/configuration.schema.js +441 -0
- package/src/schema/cruise-result.schema.js +595 -0
- package/src/cli/defaults.json +0 -15
- package/src/main/options/defaults.json +0 -10
- package/src/report/dot/default-theme.json +0 -145
- package/src/schema/configuration.schema.json +0 -697
- package/src/schema/cruise-result.schema.json +0 -988
|
@@ -0,0 +1,595 @@
|
|
|
1
|
+
/* generated - don't edit */
|
|
2
|
+
|
|
3
|
+
module.exports = {
|
|
4
|
+
title: "dependency-cruiser output format",
|
|
5
|
+
$schema: "http://json-schema.org/draft-07/schema#",
|
|
6
|
+
$id: "https://dependency-cruiser.js.org/schema/cruise-result.schema.json",
|
|
7
|
+
type: "object",
|
|
8
|
+
required: ["summary", "modules"],
|
|
9
|
+
additionalProperties: false,
|
|
10
|
+
properties: {
|
|
11
|
+
modules: { $ref: "#/definitions/ModulesType" },
|
|
12
|
+
summary: { $ref: "#/definitions/SummaryType" },
|
|
13
|
+
},
|
|
14
|
+
definitions: {
|
|
15
|
+
ModulesType: { type: "array", items: { $ref: "#/definitions/ModuleType" } },
|
|
16
|
+
ModuleType: {
|
|
17
|
+
type: "object",
|
|
18
|
+
required: ["source", "dependencies", "valid"],
|
|
19
|
+
additionalProperties: false,
|
|
20
|
+
properties: {
|
|
21
|
+
source: { type: "string" },
|
|
22
|
+
valid: { type: "boolean" },
|
|
23
|
+
dependencies: { $ref: "#/definitions/DependenciesType" },
|
|
24
|
+
dependents: { type: "array", items: { type: "string" } },
|
|
25
|
+
followable: { type: "boolean" },
|
|
26
|
+
matchesDoNotFollow: { type: "boolean" },
|
|
27
|
+
matchesFocus: { type: "boolean" },
|
|
28
|
+
coreModule: { type: "boolean" },
|
|
29
|
+
couldNotResolve: { type: "boolean" },
|
|
30
|
+
dependencyTypes: {
|
|
31
|
+
type: "array",
|
|
32
|
+
items: { $ref: "#/definitions/DependencyTypeType" },
|
|
33
|
+
},
|
|
34
|
+
license: { type: "string" },
|
|
35
|
+
orphan: { type: "boolean" },
|
|
36
|
+
reachable: {
|
|
37
|
+
type: "array",
|
|
38
|
+
items: { $ref: "#/definitions/ReachableType" },
|
|
39
|
+
},
|
|
40
|
+
reaches: {
|
|
41
|
+
type: "array",
|
|
42
|
+
items: { $ref: "#/definitions/ReachesType" },
|
|
43
|
+
},
|
|
44
|
+
rules: {
|
|
45
|
+
type: "array",
|
|
46
|
+
items: { $ref: "#/definitions/RuleSummaryType" },
|
|
47
|
+
},
|
|
48
|
+
consolidated: { type: "boolean" },
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
ReachableType: {
|
|
52
|
+
type: "object",
|
|
53
|
+
required: ["value", "asDefinedInRule", "matchedFrom"],
|
|
54
|
+
additionalProperties: false,
|
|
55
|
+
properties: {
|
|
56
|
+
value: { type: "boolean" },
|
|
57
|
+
asDefinedInRule: { type: "string" },
|
|
58
|
+
matchedFrom: { type: "string" },
|
|
59
|
+
},
|
|
60
|
+
},
|
|
61
|
+
ReachesType: {
|
|
62
|
+
type: "object",
|
|
63
|
+
required: ["modules", "asDefinedInRule"],
|
|
64
|
+
additionalProperties: false,
|
|
65
|
+
properties: {
|
|
66
|
+
modules: {
|
|
67
|
+
type: "array",
|
|
68
|
+
items: {
|
|
69
|
+
type: "object",
|
|
70
|
+
required: ["source", "via"],
|
|
71
|
+
additionalProperties: false,
|
|
72
|
+
properties: {
|
|
73
|
+
source: { type: "string" },
|
|
74
|
+
via: { type: "array", items: { type: "string" } },
|
|
75
|
+
},
|
|
76
|
+
},
|
|
77
|
+
},
|
|
78
|
+
asDefinedInRule: { type: "string" },
|
|
79
|
+
},
|
|
80
|
+
},
|
|
81
|
+
DependenciesType: {
|
|
82
|
+
type: "array",
|
|
83
|
+
items: { $ref: "#/definitions/DependencyType" },
|
|
84
|
+
},
|
|
85
|
+
DependencyType: {
|
|
86
|
+
type: "object",
|
|
87
|
+
required: [
|
|
88
|
+
"circular",
|
|
89
|
+
"coreModule",
|
|
90
|
+
"couldNotResolve",
|
|
91
|
+
"dependencyTypes",
|
|
92
|
+
"exoticallyRequired",
|
|
93
|
+
"dynamic",
|
|
94
|
+
"followable",
|
|
95
|
+
"module",
|
|
96
|
+
"moduleSystem",
|
|
97
|
+
"resolved",
|
|
98
|
+
"valid",
|
|
99
|
+
],
|
|
100
|
+
additionalProperties: false,
|
|
101
|
+
properties: {
|
|
102
|
+
module: { type: "string" },
|
|
103
|
+
protocol: { type: "string", enum: ["data:", "file:", "node:"] },
|
|
104
|
+
mimeType: { type: "string" },
|
|
105
|
+
resolved: { type: "string" },
|
|
106
|
+
coreModule: { type: "boolean" },
|
|
107
|
+
dependencyTypes: {
|
|
108
|
+
type: "array",
|
|
109
|
+
items: { $ref: "#/definitions/DependencyTypeType" },
|
|
110
|
+
},
|
|
111
|
+
license: { type: "string" },
|
|
112
|
+
followable: { type: "boolean" },
|
|
113
|
+
dynamic: { type: "boolean" },
|
|
114
|
+
exoticallyRequired: { type: "boolean" },
|
|
115
|
+
exoticRequire: { type: "string" },
|
|
116
|
+
matchesDoNotFollow: { type: "boolean" },
|
|
117
|
+
couldNotResolve: { type: "boolean" },
|
|
118
|
+
preCompilationOnly: { type: "boolean" },
|
|
119
|
+
circular: { type: "boolean" },
|
|
120
|
+
cycle: { type: "array", items: { type: "string" } },
|
|
121
|
+
moduleSystem: { $ref: "#/definitions/ModuleSystemType" },
|
|
122
|
+
valid: { type: "boolean" },
|
|
123
|
+
rules: {
|
|
124
|
+
type: "array",
|
|
125
|
+
items: { $ref: "#/definitions/RuleSummaryType" },
|
|
126
|
+
},
|
|
127
|
+
},
|
|
128
|
+
},
|
|
129
|
+
DependencyTypeType: {
|
|
130
|
+
type: "string",
|
|
131
|
+
enum: [
|
|
132
|
+
"aliased",
|
|
133
|
+
"core",
|
|
134
|
+
"deprecated",
|
|
135
|
+
"local",
|
|
136
|
+
"localmodule",
|
|
137
|
+
"npm",
|
|
138
|
+
"npm-bundled",
|
|
139
|
+
"npm-dev",
|
|
140
|
+
"npm-no-pkg",
|
|
141
|
+
"npm-optional",
|
|
142
|
+
"npm-peer",
|
|
143
|
+
"npm-unknown",
|
|
144
|
+
"undetermined",
|
|
145
|
+
"unknown",
|
|
146
|
+
],
|
|
147
|
+
},
|
|
148
|
+
ModuleSystemType: { type: "string", enum: ["cjs", "es6", "amd", "tsd"] },
|
|
149
|
+
RuleSummaryType: {
|
|
150
|
+
type: "object",
|
|
151
|
+
required: ["name", "severity"],
|
|
152
|
+
additionalProperties: false,
|
|
153
|
+
properties: {
|
|
154
|
+
name: { type: "string" },
|
|
155
|
+
severity: { $ref: "#/definitions/SeverityType" },
|
|
156
|
+
},
|
|
157
|
+
},
|
|
158
|
+
SeverityType: { type: "string", enum: ["error", "warn", "info", "ignore"] },
|
|
159
|
+
SummaryType: {
|
|
160
|
+
type: "object",
|
|
161
|
+
required: [
|
|
162
|
+
"violations",
|
|
163
|
+
"error",
|
|
164
|
+
"warn",
|
|
165
|
+
"info",
|
|
166
|
+
"totalCruised",
|
|
167
|
+
"optionsUsed",
|
|
168
|
+
],
|
|
169
|
+
additionalProperties: false,
|
|
170
|
+
properties: {
|
|
171
|
+
violations: { $ref: "#/definitions/ViolationsType" },
|
|
172
|
+
error: { type: "number" },
|
|
173
|
+
warn: { type: "number" },
|
|
174
|
+
info: { type: "number" },
|
|
175
|
+
totalCruised: { type: "number" },
|
|
176
|
+
totalDependenciesCruised: { type: "number" },
|
|
177
|
+
ruleSetUsed: { $ref: "#/definitions/RuleSetType" },
|
|
178
|
+
optionsUsed: { $ref: "#/definitions/OptionsUsedType" },
|
|
179
|
+
},
|
|
180
|
+
},
|
|
181
|
+
ViolationsType: {
|
|
182
|
+
type: "array",
|
|
183
|
+
items: { $ref: "#/definitions/ViolationType" },
|
|
184
|
+
},
|
|
185
|
+
ViolationType: {
|
|
186
|
+
type: "object",
|
|
187
|
+
required: ["from", "to", "rule"],
|
|
188
|
+
additionalProperties: false,
|
|
189
|
+
properties: {
|
|
190
|
+
from: { type: "string" },
|
|
191
|
+
to: { type: "string" },
|
|
192
|
+
rule: { $ref: "#/definitions/RuleSummaryType" },
|
|
193
|
+
cycle: { type: "array", items: { type: "string" } },
|
|
194
|
+
via: { type: "array", items: { type: "string" } },
|
|
195
|
+
},
|
|
196
|
+
},
|
|
197
|
+
RuleSetType: {
|
|
198
|
+
type: "object",
|
|
199
|
+
additionalProperties: false,
|
|
200
|
+
properties: {
|
|
201
|
+
forbidden: {
|
|
202
|
+
type: "array",
|
|
203
|
+
items: { $ref: "#/definitions/ForbiddenRuleType" },
|
|
204
|
+
},
|
|
205
|
+
allowed: {
|
|
206
|
+
type: "array",
|
|
207
|
+
items: { $ref: "#/definitions/AllowedRuleType" },
|
|
208
|
+
},
|
|
209
|
+
allowedSeverity: { $ref: "#/definitions/SeverityType" },
|
|
210
|
+
required: {
|
|
211
|
+
type: "array",
|
|
212
|
+
items: { $ref: "#/definitions/RequiredRuleType" },
|
|
213
|
+
},
|
|
214
|
+
},
|
|
215
|
+
},
|
|
216
|
+
AllowedRuleType: {
|
|
217
|
+
oneOf: [
|
|
218
|
+
{ $ref: "#/definitions/RegularAllowedRuleType" },
|
|
219
|
+
{ $ref: "#/definitions/ReachabilityAllowedRuleType" },
|
|
220
|
+
],
|
|
221
|
+
},
|
|
222
|
+
RegularAllowedRuleType: {
|
|
223
|
+
type: "object",
|
|
224
|
+
required: ["from", "to"],
|
|
225
|
+
additionalProperties: false,
|
|
226
|
+
properties: {
|
|
227
|
+
comment: { type: "string" },
|
|
228
|
+
from: { $ref: "#/definitions/FromRestrictionType" },
|
|
229
|
+
to: { $ref: "#/definitions/ToRestrictionType" },
|
|
230
|
+
},
|
|
231
|
+
},
|
|
232
|
+
ReachabilityAllowedRuleType: {
|
|
233
|
+
type: "object",
|
|
234
|
+
required: ["from", "to"],
|
|
235
|
+
additionalProperties: false,
|
|
236
|
+
properties: {
|
|
237
|
+
comment: { type: "string" },
|
|
238
|
+
from: { $ref: "#/definitions/ReachabilityFromRestrictionType" },
|
|
239
|
+
to: { $ref: "#/definitions/ReachabilityToRestrictionType" },
|
|
240
|
+
},
|
|
241
|
+
},
|
|
242
|
+
ForbiddenRuleType: {
|
|
243
|
+
oneOf: [
|
|
244
|
+
{ $ref: "#/definitions/RegularForbiddenRuleType" },
|
|
245
|
+
{ $ref: "#/definitions/ReachabilityForbiddenRuleType" },
|
|
246
|
+
{ $ref: "#/definitions/DependentsForbiddenRuleType" },
|
|
247
|
+
],
|
|
248
|
+
},
|
|
249
|
+
RegularForbiddenRuleType: {
|
|
250
|
+
type: "object",
|
|
251
|
+
required: ["from", "to"],
|
|
252
|
+
additionalProperties: false,
|
|
253
|
+
properties: {
|
|
254
|
+
name: { type: "string" },
|
|
255
|
+
severity: { $ref: "#/definitions/SeverityType" },
|
|
256
|
+
comment: { type: "string" },
|
|
257
|
+
from: { $ref: "#/definitions/FromRestrictionType" },
|
|
258
|
+
to: { $ref: "#/definitions/ToRestrictionType" },
|
|
259
|
+
},
|
|
260
|
+
},
|
|
261
|
+
DependentsForbiddenRuleType: {
|
|
262
|
+
type: "object",
|
|
263
|
+
required: ["module", "from"],
|
|
264
|
+
additionalProperties: false,
|
|
265
|
+
properties: {
|
|
266
|
+
name: { type: "string" },
|
|
267
|
+
severity: { $ref: "#/definitions/SeverityType" },
|
|
268
|
+
comment: { type: "string" },
|
|
269
|
+
module: { $ref: "#/definitions/DependentsModuleRestrictionType" },
|
|
270
|
+
from: { $ref: "#/definitions/DependentsFromRestrictionType" },
|
|
271
|
+
},
|
|
272
|
+
},
|
|
273
|
+
ReachabilityForbiddenRuleType: {
|
|
274
|
+
type: "object",
|
|
275
|
+
required: ["from", "to"],
|
|
276
|
+
additionalProperties: false,
|
|
277
|
+
properties: {
|
|
278
|
+
name: { type: "string" },
|
|
279
|
+
severity: { $ref: "#/definitions/SeverityType" },
|
|
280
|
+
comment: { type: "string" },
|
|
281
|
+
from: { $ref: "#/definitions/ReachabilityFromRestrictionType" },
|
|
282
|
+
to: { $ref: "#/definitions/ReachabilityToRestrictionType" },
|
|
283
|
+
},
|
|
284
|
+
},
|
|
285
|
+
RequiredRuleType: {
|
|
286
|
+
type: "object",
|
|
287
|
+
required: ["module", "to"],
|
|
288
|
+
additionalProperties: false,
|
|
289
|
+
properties: {
|
|
290
|
+
name: { type: "string" },
|
|
291
|
+
severity: { $ref: "#/definitions/SeverityType" },
|
|
292
|
+
comment: { type: "string" },
|
|
293
|
+
module: { $ref: "#/definitions/RequiredModuleRestrictionType" },
|
|
294
|
+
to: { $ref: "#/definitions/RequiredToRestrictionType" },
|
|
295
|
+
},
|
|
296
|
+
},
|
|
297
|
+
FromRestrictionType: {
|
|
298
|
+
type: "object",
|
|
299
|
+
additionalProperties: false,
|
|
300
|
+
properties: {
|
|
301
|
+
path: { $ref: "#/definitions/REAsStringsType" },
|
|
302
|
+
pathNot: { $ref: "#/definitions/REAsStringsType" },
|
|
303
|
+
orphan: { type: "boolean" },
|
|
304
|
+
},
|
|
305
|
+
},
|
|
306
|
+
ReachabilityFromRestrictionType: {
|
|
307
|
+
type: "object",
|
|
308
|
+
additionalProperties: false,
|
|
309
|
+
properties: {
|
|
310
|
+
path: { $ref: "#/definitions/REAsStringsType" },
|
|
311
|
+
pathNot: { $ref: "#/definitions/REAsStringsType" },
|
|
312
|
+
},
|
|
313
|
+
},
|
|
314
|
+
ToRestrictionType: {
|
|
315
|
+
type: "object",
|
|
316
|
+
additionalProperties: false,
|
|
317
|
+
properties: {
|
|
318
|
+
path: { $ref: "#/definitions/REAsStringsType" },
|
|
319
|
+
pathNot: { $ref: "#/definitions/REAsStringsType" },
|
|
320
|
+
couldNotResolve: { type: "boolean" },
|
|
321
|
+
circular: { type: "boolean" },
|
|
322
|
+
dynamic: { type: "boolean" },
|
|
323
|
+
exoticallyRequired: { type: "boolean" },
|
|
324
|
+
exoticRequire: { $ref: "#/definitions/REAsStringsType" },
|
|
325
|
+
exoticRequireNot: { $ref: "#/definitions/REAsStringsType" },
|
|
326
|
+
preCompilationOnly: { type: "boolean" },
|
|
327
|
+
dependencyTypes: {
|
|
328
|
+
type: "array",
|
|
329
|
+
items: { $ref: "#/definitions/DependencyTypeType" },
|
|
330
|
+
},
|
|
331
|
+
moreThanOneDependencyType: { type: "boolean" },
|
|
332
|
+
license: { $ref: "#/definitions/REAsStringsType" },
|
|
333
|
+
licenseNot: { $ref: "#/definitions/REAsStringsType" },
|
|
334
|
+
},
|
|
335
|
+
},
|
|
336
|
+
DependentsModuleRestrictionType: {
|
|
337
|
+
required: [],
|
|
338
|
+
type: "object",
|
|
339
|
+
additionalProperties: false,
|
|
340
|
+
properties: {
|
|
341
|
+
path: { $ref: "#/definitions/REAsStringsType" },
|
|
342
|
+
pathNot: { $ref: "#/definitions/REAsStringsType" },
|
|
343
|
+
numberOfDependentsLessThan: {
|
|
344
|
+
type: "integer",
|
|
345
|
+
minimum: 0,
|
|
346
|
+
maximum: 100,
|
|
347
|
+
},
|
|
348
|
+
numberOfDependentsMoreThan: {
|
|
349
|
+
type: "integer",
|
|
350
|
+
minimum: 0,
|
|
351
|
+
maximum: 100,
|
|
352
|
+
},
|
|
353
|
+
},
|
|
354
|
+
},
|
|
355
|
+
DependentsFromRestrictionType: {
|
|
356
|
+
required: [],
|
|
357
|
+
type: "object",
|
|
358
|
+
additionalProperties: false,
|
|
359
|
+
properties: {
|
|
360
|
+
path: { $ref: "#/definitions/REAsStringsType" },
|
|
361
|
+
pathNot: { $ref: "#/definitions/REAsStringsType" },
|
|
362
|
+
},
|
|
363
|
+
},
|
|
364
|
+
ReachabilityToRestrictionType: {
|
|
365
|
+
required: ["reachable"],
|
|
366
|
+
type: "object",
|
|
367
|
+
additionalProperties: false,
|
|
368
|
+
properties: {
|
|
369
|
+
path: { $ref: "#/definitions/REAsStringsType" },
|
|
370
|
+
pathNot: { $ref: "#/definitions/REAsStringsType" },
|
|
371
|
+
reachable: { type: "boolean" },
|
|
372
|
+
},
|
|
373
|
+
},
|
|
374
|
+
RequiredModuleRestrictionType: {
|
|
375
|
+
required: [],
|
|
376
|
+
type: "object",
|
|
377
|
+
additionalProperties: false,
|
|
378
|
+
properties: {
|
|
379
|
+
path: { $ref: "#/definitions/REAsStringsType" },
|
|
380
|
+
pathNot: { $ref: "#/definitions/REAsStringsType" },
|
|
381
|
+
},
|
|
382
|
+
},
|
|
383
|
+
RequiredToRestrictionType: {
|
|
384
|
+
required: [],
|
|
385
|
+
type: "object",
|
|
386
|
+
additionalProperties: false,
|
|
387
|
+
properties: { path: { $ref: "#/definitions/REAsStringsType" } },
|
|
388
|
+
},
|
|
389
|
+
REAsStringsType: {
|
|
390
|
+
oneOf: [{ type: "string" }, { type: "array", items: { type: "string" } }],
|
|
391
|
+
},
|
|
392
|
+
OptionsUsedType: {
|
|
393
|
+
type: "object",
|
|
394
|
+
additionalProperties: false,
|
|
395
|
+
properties: {
|
|
396
|
+
doNotFollow: { $ref: "#/definitions/CompoundDoNotFollowType" },
|
|
397
|
+
exclude: { $ref: "#/definitions/CompoundExcludeType" },
|
|
398
|
+
includeOnly: {
|
|
399
|
+
oneOf: [
|
|
400
|
+
{ $ref: "#/definitions/REAsStringsType" },
|
|
401
|
+
{ $ref: "#/definitions/CompoundIncludeOnlyType" },
|
|
402
|
+
],
|
|
403
|
+
},
|
|
404
|
+
focus: { $ref: "#/definitions/CompoundFocusType" },
|
|
405
|
+
collapse: { type: "string" },
|
|
406
|
+
maxDepth: { type: "integer", minimum: 0, maximum: 99 },
|
|
407
|
+
moduleSystems: { $ref: "#/definitions/ModuleSystemsType" },
|
|
408
|
+
prefix: { type: "string" },
|
|
409
|
+
preserveSymlinks: { type: "boolean" },
|
|
410
|
+
combinedDependencies: { type: "boolean" },
|
|
411
|
+
tsConfig: {
|
|
412
|
+
type: "object",
|
|
413
|
+
additionalProperties: false,
|
|
414
|
+
properties: { fileName: { type: "string" } },
|
|
415
|
+
},
|
|
416
|
+
tsPreCompilationDeps: {
|
|
417
|
+
oneOf: [{ type: "boolean" }, { type: "string", enum: ["specify"] }],
|
|
418
|
+
},
|
|
419
|
+
externalModuleResolutionStrategy: {
|
|
420
|
+
type: "string",
|
|
421
|
+
enum: ["node_modules", "yarn-pnp"],
|
|
422
|
+
},
|
|
423
|
+
forceDeriveDependents: { type: "boolean" },
|
|
424
|
+
webpackConfig: {
|
|
425
|
+
type: "object",
|
|
426
|
+
additionalProperties: false,
|
|
427
|
+
properties: {
|
|
428
|
+
fileName: { type: "string" },
|
|
429
|
+
env: { oneOf: [{ type: "object" }, { type: "string" }] },
|
|
430
|
+
arguments: { type: "object" },
|
|
431
|
+
},
|
|
432
|
+
},
|
|
433
|
+
enhancedResolveOptions: {
|
|
434
|
+
type: "object",
|
|
435
|
+
additionalProperties: false,
|
|
436
|
+
properties: {
|
|
437
|
+
exportsFields: { type: "array", items: { type: "string" } },
|
|
438
|
+
conditionNames: { type: "array", items: { type: "string" } },
|
|
439
|
+
extensions: { type: "array", items: { type: "string" } },
|
|
440
|
+
cachedInputFileSystem: {
|
|
441
|
+
type: "object",
|
|
442
|
+
additionalProperties: false,
|
|
443
|
+
properties: {
|
|
444
|
+
cacheDuration: {
|
|
445
|
+
type: "integer",
|
|
446
|
+
minimum: 0,
|
|
447
|
+
maximum: 1800000,
|
|
448
|
+
},
|
|
449
|
+
},
|
|
450
|
+
},
|
|
451
|
+
},
|
|
452
|
+
},
|
|
453
|
+
babelConfig: {
|
|
454
|
+
type: "object",
|
|
455
|
+
additionalProperties: false,
|
|
456
|
+
properties: { fileName: { type: "string" } },
|
|
457
|
+
},
|
|
458
|
+
parser: { type: "string", enum: ["acorn", "swc", "tsc"] },
|
|
459
|
+
exoticRequireStrings: { type: "array", items: { type: "string" } },
|
|
460
|
+
reporterOptions: { $ref: "#/definitions/ReporterOptionsType" },
|
|
461
|
+
progress: {
|
|
462
|
+
type: "object",
|
|
463
|
+
additionalProperties: false,
|
|
464
|
+
properties: {
|
|
465
|
+
type: {
|
|
466
|
+
type: "string",
|
|
467
|
+
enum: ["cli-feedback", "performance-log", "none"],
|
|
468
|
+
},
|
|
469
|
+
},
|
|
470
|
+
},
|
|
471
|
+
baseDir: { type: "string" },
|
|
472
|
+
args: { type: "string" },
|
|
473
|
+
rulesFile: { type: "string" },
|
|
474
|
+
outputTo: { type: "string" },
|
|
475
|
+
outputType: { $ref: "#/definitions/OutputType" },
|
|
476
|
+
},
|
|
477
|
+
},
|
|
478
|
+
ModuleSystemsType: {
|
|
479
|
+
type: "array",
|
|
480
|
+
items: { $ref: "#/definitions/ModuleSystemType" },
|
|
481
|
+
},
|
|
482
|
+
OutputType: {
|
|
483
|
+
oneOf: [
|
|
484
|
+
{
|
|
485
|
+
type: "string",
|
|
486
|
+
enum: [
|
|
487
|
+
"json",
|
|
488
|
+
"html",
|
|
489
|
+
"dot",
|
|
490
|
+
"ddot",
|
|
491
|
+
"cdot",
|
|
492
|
+
"archi",
|
|
493
|
+
"fdot",
|
|
494
|
+
"flat",
|
|
495
|
+
"csv",
|
|
496
|
+
"err",
|
|
497
|
+
"err-long",
|
|
498
|
+
"err-html",
|
|
499
|
+
"teamcity",
|
|
500
|
+
"anon",
|
|
501
|
+
"text",
|
|
502
|
+
],
|
|
503
|
+
},
|
|
504
|
+
{ type: "string", pattern: "^plugin:[^:]+$" },
|
|
505
|
+
],
|
|
506
|
+
},
|
|
507
|
+
CompoundExcludeType: {
|
|
508
|
+
type: "object",
|
|
509
|
+
additionalProperties: false,
|
|
510
|
+
properties: {
|
|
511
|
+
path: { $ref: "#/definitions/REAsStringsType" },
|
|
512
|
+
dynamic: { type: "boolean" },
|
|
513
|
+
},
|
|
514
|
+
},
|
|
515
|
+
CompoundDoNotFollowType: {
|
|
516
|
+
type: "object",
|
|
517
|
+
additionalProperties: false,
|
|
518
|
+
properties: {
|
|
519
|
+
path: { $ref: "#/definitions/REAsStringsType" },
|
|
520
|
+
dependencyTypes: {
|
|
521
|
+
type: "array",
|
|
522
|
+
items: { $ref: "#/definitions/DependencyTypeType" },
|
|
523
|
+
},
|
|
524
|
+
},
|
|
525
|
+
},
|
|
526
|
+
CompoundIncludeOnlyType: {
|
|
527
|
+
type: "object",
|
|
528
|
+
additionalProperties: false,
|
|
529
|
+
properties: { path: { $ref: "#/definitions/REAsStringsType" } },
|
|
530
|
+
},
|
|
531
|
+
CompoundFocusType: {
|
|
532
|
+
type: "object",
|
|
533
|
+
additionalProperties: false,
|
|
534
|
+
properties: { path: { $ref: "#/definitions/REAsStringsType" } },
|
|
535
|
+
},
|
|
536
|
+
ReporterOptionsType: {
|
|
537
|
+
type: "object",
|
|
538
|
+
additionalProperties: false,
|
|
539
|
+
properties: {
|
|
540
|
+
anon: { $ref: "#/definitions/AnonReporterOptionsType" },
|
|
541
|
+
archi: { $ref: "#/definitions/DotReporterOptionsType" },
|
|
542
|
+
dot: { $ref: "#/definitions/DotReporterOptionsType" },
|
|
543
|
+
ddot: { $ref: "#/definitions/DotReporterOptionsType" },
|
|
544
|
+
flat: { $ref: "#/definitions/DotReporterOptionsType" },
|
|
545
|
+
},
|
|
546
|
+
},
|
|
547
|
+
AnonReporterOptionsType: {
|
|
548
|
+
type: "object",
|
|
549
|
+
additionalProperties: false,
|
|
550
|
+
properties: { wordlist: { type: "array", items: { type: "string" } } },
|
|
551
|
+
},
|
|
552
|
+
DotReporterOptionsType: {
|
|
553
|
+
type: "object",
|
|
554
|
+
additionalProperties: false,
|
|
555
|
+
properties: {
|
|
556
|
+
collapsePattern: { $ref: "#/definitions/REAsStringsType" },
|
|
557
|
+
filters: { $ref: "#/definitions/ReporterFiltersType" },
|
|
558
|
+
theme: { $ref: "#/definitions/DotThemeType" },
|
|
559
|
+
},
|
|
560
|
+
},
|
|
561
|
+
DotThemeType: {
|
|
562
|
+
type: "object",
|
|
563
|
+
additionalProperties: false,
|
|
564
|
+
properties: {
|
|
565
|
+
replace: { type: "boolean" },
|
|
566
|
+
graph: { type: "object" },
|
|
567
|
+
node: { type: "object" },
|
|
568
|
+
edge: { type: "object" },
|
|
569
|
+
modules: { $ref: "#/definitions/DotThemeArrayType" },
|
|
570
|
+
dependencies: { $ref: "#/definitions/DotThemeArrayType" },
|
|
571
|
+
},
|
|
572
|
+
},
|
|
573
|
+
DotThemeArrayType: {
|
|
574
|
+
type: "array",
|
|
575
|
+
items: { $ref: "#/definitions/DotThemeEntryType" },
|
|
576
|
+
},
|
|
577
|
+
DotThemeEntryType: {
|
|
578
|
+
type: "object",
|
|
579
|
+
additionalProperties: false,
|
|
580
|
+
properties: {
|
|
581
|
+
criteria: { type: "object" },
|
|
582
|
+
attributes: { type: "object" },
|
|
583
|
+
},
|
|
584
|
+
},
|
|
585
|
+
ReporterFiltersType: {
|
|
586
|
+
type: "object",
|
|
587
|
+
additionalProperties: false,
|
|
588
|
+
properties: {
|
|
589
|
+
exclude: { $ref: "#/definitions/CompoundExcludeType" },
|
|
590
|
+
includeOnly: { $ref: "#/definitions/CompoundIncludeOnlyType" },
|
|
591
|
+
focus: { $ref: "#/definitions/CompoundFocusType" },
|
|
592
|
+
},
|
|
593
|
+
},
|
|
594
|
+
},
|
|
595
|
+
};
|
package/src/cli/defaults.json
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"OLD_DEFAULT_RULES_FILE_NAME": ".dependency-cruiser.json",
|
|
3
|
-
"RULES_FILE_NAME_SEARCH_ARRAY": [
|
|
4
|
-
".dependency-cruiser.json",
|
|
5
|
-
".dependency-cruiser.js",
|
|
6
|
-
".dependency-cruiser.cjs"
|
|
7
|
-
],
|
|
8
|
-
"DEFAULT_CONFIG_FILE_NAME": ".dependency-cruiser.js",
|
|
9
|
-
"WEBPACK_CONFIG": "webpack.config.js",
|
|
10
|
-
"TYPESCRIPT_CONFIG": "tsconfig.json",
|
|
11
|
-
"BABEL_CONFIG": ".babelrc",
|
|
12
|
-
"PACKAGE_MANIFEST": "package.json",
|
|
13
|
-
"OUTPUT_TYPE": "err",
|
|
14
|
-
"OUTPUT_TO": "-"
|
|
15
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"validate": false,
|
|
3
|
-
"maxDepth": 0,
|
|
4
|
-
"moduleSystems": ["amd", "cjs", "es6", "tsd"],
|
|
5
|
-
"tsPreCompilationDeps": false,
|
|
6
|
-
"preserveSymlinks": false,
|
|
7
|
-
"combinedDependencies": false,
|
|
8
|
-
"externalModuleResolutionStrategy": "node_modules",
|
|
9
|
-
"exoticRequireStrings": []
|
|
10
|
-
}
|