Skip to content

Commit

Permalink
chore: fix dependency-cruiser test
Browse files Browse the repository at this point in the history
  • Loading branch information
benlesh committed May 25, 2023
1 parent 7d16b8f commit 9e9fdf8
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 21 deletions.
24 changes: 6 additions & 18 deletions .dependency-cruiser.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@
"severity": "warn",
"from": {},
"to": {
"dependencyTypes": [
"core"
],
"dependencyTypes": ["core"],
"path": "^(punycode|domain)$"
}
},
Expand All @@ -38,9 +36,7 @@
"severity": "warn",
"from": {},
"to": {
"dependencyTypes": [
"deprecated"
]
"dependencyTypes": ["deprecated"]
}
},
{
Expand All @@ -51,9 +47,7 @@
"path": "^(src|app|lib)"
},
"to": {
"dependencyTypes": [
"npm-dev"
]
"dependencyTypes": ["npm-dev"]
}
},
{
Expand All @@ -64,11 +58,7 @@
"pathNot": "^node_modules"
},
"to": {
"dependencyTypes": [
"undetermined",
"npm-no-pkg",
"npm-unknown"
],
"dependencyTypes": ["undetermined", "npm-no-pkg", "npm-unknown"],
"pathNot": "^electron"
}
},
Expand All @@ -78,9 +68,7 @@
"severity": "error",
"from": {},
"to": {
"dependencyTypes": [
"npm-peer"
]
"dependencyTypes": ["npm-peer"]
}
},
{
Expand All @@ -97,7 +85,7 @@
"severity": "error",
"comment": "Error in case we have circular dependencies",
"from": {
"path": "^dist/esm5"
"path": "^dist/esm"
},
"to": {
"circular": true
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
"publish_docs": "./publish_docs.sh",
"test": "cross-env TS_NODE_PROJECT=tsconfig.mocha.json mocha --config spec/support/.mocharc.js \"spec/**/*-spec.ts\"",
"test:esm": "node spec/module-test-spec.mjs",
"test:circular": "dependency-cruiser --validate .dependency-cruiser.json -x \"^node_modules\" dist/esm5",
"test:circular": "dependency-cruiser --validate .dependency-cruiser.json -x \"^node_modules\" dist/esm",
"test:import": "ts-node ./integration/import/runner.ts",
"compile": "tsc -b ./src/tsconfig.cjs.json ./src/tsconfig.cjs.spec.json ./src/tsconfig.esm.json ./src/tsconfig.types.json ./src/tsconfig.types.spec.json ./spec/tsconfig.json",
"build:clean": "shx rm -rf ./dist",
Expand Down

0 comments on commit 9e9fdf8

Please sign in to comment.