-
Notifications
You must be signed in to change notification settings - Fork 248
/
compound-focus-type.mjs
30 lines (29 loc) · 971 Bytes
/
compound-focus-type.mjs
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
import REAsStringsType from "./re-as-strings-type.mjs";
export default {
definitions: {
CompoundFocusType: {
type: "object",
description: "Criteria for modules to 'focus' on",
additionalProperties: false,
properties: {
path: {
description:
"dependency-cruiser will include modules matching this regular expression " +
"in its output, as well as their neighbours (direct dependencies and " +
"dependents)",
$ref: "#/definitions/REAsStringsType",
},
depth: {
description:
"by default 'focus' only inlcudes the direct neighbours of the focus'ed module(s). " +
"This property makes dependency-cruiser will also include neighbors of neighbors, " +
"up to the specified depth.",
type: "number",
minimum: 1,
maximum: 4,
},
},
},
...REAsStringsType.definitions,
},
};