@virmator/deps 13.2.10 → 13.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type {IConfiguration, IForbiddenRuleType} from 'dependency-cruiser';
|
|
2
2
|
|
|
3
|
-
export function
|
|
3
|
+
export function defineConfig({
|
|
4
4
|
fileExceptions,
|
|
5
5
|
omitRules,
|
|
6
6
|
}: {
|
|
@@ -39,6 +39,7 @@ export function generateDepCruiserConfig({
|
|
|
39
39
|
orphan: true,
|
|
40
40
|
pathNot: [
|
|
41
41
|
'\\.d\\.ts$', // TypeScript declaration files
|
|
42
|
+
'\\.test\\.ts$',
|
|
42
43
|
],
|
|
43
44
|
},
|
|
44
45
|
to: {},
|
|
@@ -151,11 +152,14 @@ export function generateDepCruiserConfig({
|
|
|
151
152
|
},
|
|
152
153
|
},
|
|
153
154
|
{
|
|
154
|
-
name: 'not-
|
|
155
|
+
name: 'not-to-mock',
|
|
155
156
|
comment: `This non-test file depends on a mock file. Do not do this.`,
|
|
156
157
|
severity: 'error',
|
|
157
158
|
from: {
|
|
158
|
-
pathNot:
|
|
159
|
+
pathNot: [
|
|
160
|
+
'\\.test\\.ts$',
|
|
161
|
+
'\\.mock\\.ts$',
|
|
162
|
+
],
|
|
159
163
|
},
|
|
160
164
|
to: {
|
|
161
165
|
path: '\\.mock\\.ts$',
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {defineConfig} from '@virmator/deps/configs/dep-cruiser.config.base';
|
|
2
2
|
import type {IConfiguration} from 'dependency-cruiser';
|
|
3
3
|
|
|
4
|
-
const baseConfig =
|
|
4
|
+
const baseConfig = defineConfig({
|
|
5
5
|
fileExceptions: {
|
|
6
6
|
// enter file exceptions by rule name here
|
|
7
7
|
'no-orphans': {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@virmator/deps",
|
|
3
|
-
"version": "13.
|
|
3
|
+
"version": "13.3.1",
|
|
4
4
|
"description": "Default TS deps plugin for virmator.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"virmator",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@augment-vir/common": "^29.3.0",
|
|
37
37
|
"@augment-vir/node-js": "^29.3.0",
|
|
38
|
-
"@virmator/core": "^13.
|
|
38
|
+
"@virmator/core": "^13.3.1",
|
|
39
39
|
"mri": "^1.2.0"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|