Skip to content

Commit

Permalink
chore: apply the same to dependency-cruiser's own dependency-cruiser …
Browse files Browse the repository at this point in the history
…configuration
  • Loading branch information
sverweij committed Nov 24, 2023
1 parent 5ffc8d8 commit a2b78a4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions .dependency-cruiser.json
Original file line number Diff line number Diff line change
Expand Up @@ -134,10 +134,14 @@
"name": "not-to-dev-dep",
"severity": "error",
"comment": "In production code do not depend on external ('npm') modules not declared in your package.json's dependencies - otherwise a production only install (i.e. 'npm ci') will break. If this rule triggers on something that's only used during development, adapt the 'from' of the rule in the dependency-cruiser configuration.",
"from": { "path": "^(bin|src)" },
"from": {
"pathNot": ["^test/", "^tools/"]
},
"to": {
"dependencyTypes": ["npm-dev"],
"exoticallyRequired": false
"exoticallyRequired": false,
"dependencyTypesNot": ["type-only"],
"pathNot": ["node_modules/@types/"]
}
},
{
Expand Down
2 changes: 1 addition & 1 deletion types/extract-ts-config.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ParsedCommandLine } from "typescript";
import type { ParsedCommandLine } from "typescript";

/**
* Reads the file with name `pTSConfigFileName` and returns its parsed
Expand Down

0 comments on commit a2b78a4

Please sign in to comment.