Skip to content

Commit

Permalink
fix: adds exception to .dependency-cruiser.json so yarn berry test do…
Browse files Browse the repository at this point in the history
…esn't bork
  • Loading branch information
sverweij committed Jun 28, 2024
1 parent e457a1f commit 3108cdc
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .dependency-cruiser.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,14 @@
{
"name": "not-to-unresolvable",
"comment": "This module tried to depend on something that can't be resolved to disk. Revise yer code",
"from": {},
"from": {
"pathNot": [
// those import 'local node_modules' which, on e.g. yarn berry are not
// resolvable. Still ok, though, as for the (test) purpose & under e.g.
// npm they still work 100% ok
"^test/utl/(?:try-require[.]spec[.]cjs|try-import[.]spec[.]mjs)$"
]
},
"to": {
"couldNotResolve": true,
"exoticallyRequired": false
Expand Down

0 comments on commit 3108cdc

Please sign in to comment.