Build: Detect circular dependencies with Madge (#17924)

* feat: adds script to run madge in a CI environment

* build: adds check for circular dependencies

* build: move actions higher up

* build: only print annotation once

* build: make script not fail CI until dependencies are fixed
This commit is contained in:
Jacob Overgaard
2025-01-15 10:19:43 +01:00
committed by GitHub
parent 1c468e2088
commit c8547d9ff0
3 changed files with 78 additions and 1 deletions

View File

@@ -158,7 +158,7 @@
"postbuild": "rollup -c ./src/rollup.config.js && node ./devops/build/global-types.js",
"check": "npm run lint:errors && npm run compile && npm run build-storybook && npm run generate:jsonschema:dist",
"check:paths": "node ./devops/build/check-path-length.js dist-cms 120",
"check:circular": "madge --circular --warning --extensions ts ./src",
"check:circular": "node ./devops/circular/index.js src",
"compile": "tsc",
"dev": "vite",
"dev:server": "cross-env VITE_UMBRACO_USE_MSW=off vite",