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:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user