Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .dependency-cruiser.js → .dependency-cruiser.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/** @type {import('dependency-cruiser').IConfiguration} */
module.exports = {
export default {
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed legacy module syntax. This also require extension to be mjs

forbidden: [
{
name: "Macaw UI - migration",
Expand Down Expand Up @@ -36,7 +36,6 @@ module.exports = {
},
reporterOptions: {
dot: {
collapsePattern: "node_modules/[^/]+",
collapsePattern: "^(packages|src|lib|app|bin|test(s?)|spec(s?))/[^/]+|node_modules/[^/]+",
},
text: {
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/dependency-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
- name: Store import stats
id: store_import_stats
run: |
stats=$(pnpm exec depcruise --config .dependency-cruiser.js src --output-type json | jq ".summary.info")
stats=$(pnpm exec depcruise --config .dependency-cruiser.mjs src --output-type json | jq ".summary.info")
echo "Statistics on main branch: ${stats}"
Comment thread
lkostrowski marked this conversation as resolved.
echo "MAIN_STATISTICS=${stats}" >> $GITHUB_OUTPUT

Expand Down Expand Up @@ -66,7 +66,7 @@ jobs:
env:
latest: ${{ needs.current_state.outputs.main_statistics }}
run: |
current=$(pnpm exec depcruise --config .dependency-cruiser.js src --output-type json | jq ".summary.info")
current=$(pnpm exec depcruise --config .dependency-cruiser.mjs src --output-type json | jq ".summary.info")
difference=$(( $current - $latest ))
Comment thread
lkostrowski marked this conversation as resolved.
echo "Imports in main: ${latest}"
echo "Incoming imports: ${current}"
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ mochawesome.json
django-queries-results.html

!.env.template
!.dependency-cruiser.js
!.dependency-cruiser.mjs
!.featureFlags
/test-results/
/playwright-report/
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"check-types:playwright": "tsc --noEmit --project playwright/tsconfig.json",
"check-types:src": "tsc --noEmit && tsc-strict",
"chromatic": "chromatic --exit-zero-on-changes",
"dep-status": "depcruise --config .dependency-cruiser.js src",
"dep-status": "depcruise --config .dependency-cruiser.mjs src",
Comment thread
lkostrowski marked this conversation as resolved.
"predev": "pnpm run generate",
"dev": "vite --host",
"dev:no-strict": "cross-env VITE_DISABLE_STRICT_MODE=true vite --host",
Expand Down Expand Up @@ -194,7 +194,7 @@
"code-inspector-plugin": "^0.6.5",
"core-js": "^3.46.0",
"cross-env": "^6.0.3",
"dependency-cruiser": "^12.12.2",
"dependency-cruiser": "17.3.10",
"dotenv": "^10.0.0",
"eslint": "^9.39.1",
"eslint-config-prettier": "^10.1.8",
Expand Down
Loading
Loading