Skip to content

Commit e83c3fe

Browse files
committed
feat: added circular deps detection
1 parent 8f15f53 commit e83c3fe

File tree

4 files changed

+843
-6
lines changed

4 files changed

+843
-6
lines changed

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,13 @@
1616
"prettify:readme": "prettier --write ./README.md",
1717
"lint": "eslint src --ext .js,.jsx,.ts,.tsx --fix",
1818
"lint:ci": "eslint src --ext .js,.jsx,.ts,.tsx",
19+
"circular-deps": "madge --circular --extensions ts src",
1920
"compile": "pnpm run build:ts",
2021
"compile:ci": "pnpm run build:ts",
2122
"build:ts": "pnpm run build:ts:cjs",
2223
"build:ts:cjs": "tsc -p src",
2324
"test": "cross-env TS_NODE_PROJECT='./tests/tsconfig.json' nyc mocha --timeout 300000",
24-
"build": "pnpm run clear:dist && pnpm run prettify:src && pnpm run lint && pnpm run compile && pnpm run prettify:readme && chmod +x dist/cli.js && chmod +x dist/build/build.js && chmod +x dist/create/create.js && chmod +x dist/create/preset/preset.js",
25+
"build": "pnpm run clear:dist && pnpm run prettify:src && pnpm run lint && pnpm run compile && pnpm run circular-deps && pnpm run prettify:readme && chmod +x dist/cli.js && chmod +x dist/build/build.js && chmod +x dist/create/create.js && chmod +x dist/create/preset/preset.js",
2526
"build:ci": "pnpm run clear:dist && pnpm run prettify:ci:src && pnpm run lint:ci && pnpm run compile && pnpm run prettify:ci:readme",
2627
"clear:dist": "rimraf ./dist",
2728
"prepack": "pnpm run build",
@@ -42,6 +43,7 @@
4243
"fs-extra": "^11.2.0",
4344
"klaw": "^4.1.0",
4445
"lookpath": "^1.2.2",
46+
"madge": "^6.1.0",
4547
"path-scurry": "^1.10.1",
4648
"prettier": "^3.2.4",
4749
"prettier-plugin-multiline-arrays": "^3.0.1",
@@ -54,6 +56,7 @@
5456
"@types/chai": "^4.3.11",
5557
"@types/fs-extra": "^11.0.4",
5658
"@types/klaw": "^3.0.6",
59+
"@types/madge": "^5.0.3",
5760
"@types/mocha": "^10.0.6",
5861
"@types/node": "^20.11.13",
5962
"@types/prompts": "^2.4.9",

0 commit comments

Comments
 (0)