Skip to content

Commit

Permalink
Add checks for circular dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
reilem committed Oct 21, 2024
1 parent a973d93 commit 855fb6f
Show file tree
Hide file tree
Showing 4 changed files with 882 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/workflows/checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ jobs:
- name: Prettier Check
run: pnpm run prettiercheck

- name: Circular Dependencies Check
run: pnpm run circularcheck

- name: Test
run: pnpm run test

Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ jobs:
- name: Prettier Check
run: pnpm run prettiercheck

- name: Circular Dependencies Check
run: pnpm run circularcheck

- name: Test
run: pnpm run test

Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,13 @@
"clean": "rimraf lib",
"build": "pnpm clean && tsc -p tsconfig.build.json",
"typecheck": "tsc",
"prettiercheck": "prettier -c ."
"prettiercheck": "prettier -c .",
"circularcheck": "madge --circular --extensions ts ./src"
},
"devDependencies": {
"@jest/globals": "^29.7.0",
"jest": "^29.7.0",
"madge": "^8.0.0",
"prettier": "^3.2.5",
"rimraf": "^5.0.5",
"ts-jest": "^29.1.2",
Expand Down
Loading

0 comments on commit 855fb6f

Please sign in to comment.