-
Notifications
You must be signed in to change notification settings - Fork 247
/
berry-dependency-cruiser-config.js
65 lines (58 loc) · 1.57 KB
/
berry-dependency-cruiser-config.js
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
/** @type {import('dependency-cruiser').IConfiguration} */
module.exports = {
options: {
doNotFollow: {
dependencyTypes: [
"npm",
"npm-dev",
"npm-optional",
"npm-peer",
"npm-bundled",
"npm-no-pkg",
],
},
includeOnly: "^packages",
/* prefix for links in html and svg output */
prefix: "https://github.com/yarnpkg/berry/tree/master/",
tsPreCompilationDeps: false,
tsConfig: {
fileName: "./tsconfig.json",
},
/* How to resolve external modules - use "yarn-pnp" if you're using yarn's Plug'n'Play.
otherwise leave it out (or set to the default, which is 'node_modules')
*/
externalModuleResolutionStrategy: "yarn-pnp",
progress: { type: "performance-log" },
reporterOptions: {
archi: {
theme: {
graph: { splines: "ortho" },
modules: [
{
criteria: { source: "plugin-" },
attributes: { fillcolor: "#ffccff" },
},
{
criteria: { source: "yarnpkg-" },
attributes: { fillcolor: "#ccffcc" },
},
{
criteria: {},
attributes: { fillcolor: "#ccccff" },
},
],
dependencies: [
{
criteria: { resolved: "plugin-" },
attributes: { color: "#ff00ff77" },
},
{
criteria: { resolved: "yarnpkg-" },
attributes: { color: "#00770077" },
},
],
},
},
},
},
};