@voiceflow/dependency-cruiser-config 1.6.1 → 1.7.0
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.
- package/build/config.d.ts +1 -1
- package/build/config.d.ts.map +1 -1
- package/build/config.js +2 -2
- package/build/rules/noOrphans.d.ts +2 -1
- package/build/rules/noOrphans.d.ts.map +1 -1
- package/build/rules/noOrphans.js +2 -1
- package/build/types.d.ts +3 -0
- package/build/types.d.ts.map +1 -1
- package/package.json +4 -4
package/build/config.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { IConfiguration } from 'dependency-cruiser';
|
|
2
2
|
import type { Options } from './types';
|
|
3
|
-
declare const createConfig: ({ tsconfig, sourceDir, allowTypeCycles, ignore, }?: Options) => IConfiguration;
|
|
3
|
+
declare const createConfig: ({ tsconfig, sourceDir, allowTypeCycles, ignore, orphans: { ignore: ignoreOrphans }, }?: Options) => IConfiguration;
|
|
4
4
|
export default createConfig;
|
|
5
5
|
//# sourceMappingURL=config.d.ts.map
|
package/build/config.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAgBzD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAEvC,QAAA,MAAM,YAAY,
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAgBzD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAEvC,QAAA,MAAM,YAAY,2FAMf,OAAO,KAAQ,cAmOhB,CAAC;AAEH,eAAe,YAAY,CAAC"}
|
package/build/config.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const rules_1 = require("./rules");
|
|
4
|
-
const createConfig = ({ tsconfig = 'tsconfig.json', sourceDir = 'src', allowTypeCycles = false, ignore = [], } = {}) => ({
|
|
4
|
+
const createConfig = ({ tsconfig = 'tsconfig.json', sourceDir = 'src', allowTypeCycles = false, ignore = [], orphans: { ignore: ignoreOrphans = [] } = {}, } = {}) => ({
|
|
5
5
|
forbidden: [
|
|
6
6
|
/* rules from the 'recommended' preset: */
|
|
7
7
|
(0, rules_1.noCircularRule)(),
|
|
8
|
-
(0, rules_1.noOrphansRule)({ ignoreTypes: allowTypeCycles }),
|
|
8
|
+
(0, rules_1.noOrphansRule)({ ignoreTypes: allowTypeCycles, ignorePaths: ignoreOrphans }),
|
|
9
9
|
(0, rules_1.noDeprecatedCoreRule)(),
|
|
10
10
|
(0, rules_1.notToDeprecatedRule)(),
|
|
11
11
|
(0, rules_1.noNonPackageRule)(),
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { IRegularForbiddenRuleType } from 'dependency-cruiser';
|
|
2
2
|
export interface NoOrphansOptions {
|
|
3
3
|
ignoreTypes?: boolean;
|
|
4
|
+
ignorePaths?: string[];
|
|
4
5
|
}
|
|
5
|
-
export declare const noOrphansRule: ({ ignoreTypes }?: NoOrphansOptions) => IRegularForbiddenRuleType;
|
|
6
|
+
export declare const noOrphansRule: ({ ignoreTypes, ignorePaths, }?: NoOrphansOptions) => IRegularForbiddenRuleType;
|
|
6
7
|
//# sourceMappingURL=noOrphans.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"noOrphans.d.ts","sourceRoot":"","sources":["../../src/rules/noOrphans.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAC;AAEpE,MAAM,WAAW,gBAAgB;IAC/B,WAAW,CAAC,EAAE,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"noOrphans.d.ts","sourceRoot":"","sources":["../../src/rules/noOrphans.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAC;AAEpE,MAAM,WAAW,gBAAgB;IAC/B,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;CACxB;AAED,eAAO,MAAM,aAAa,mCAGvB,gBAAgB,KAAQ,yBAqBzB,CAAC"}
|
package/build/rules/noOrphans.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.noOrphansRule = void 0;
|
|
4
|
-
const noOrphansRule = ({ ignoreTypes = false } = {}) => ({
|
|
4
|
+
const noOrphansRule = ({ ignoreTypes = false, ignorePaths = [], } = {}) => ({
|
|
5
5
|
name: 'no-orphans',
|
|
6
6
|
comment: "This is an orphan module - it's likely not used (anymore?). Either use it or " +
|
|
7
7
|
"remove it. If it's logical this module is an orphan (i.e. it's a config file), " +
|
|
@@ -17,6 +17,7 @@ const noOrphansRule = ({ ignoreTypes = false } = {}) => ({
|
|
|
17
17
|
'(^|/)tsconfig\\.json$', // TypeScript config
|
|
18
18
|
'(^|/)(babel|webpack)\\.config\\.(js|cjs|mjs|ts|json)$', // other configs
|
|
19
19
|
...(ignoreTypes ? ['(^|/)types\\.ts$', '\\.interface\\.ts$'] : []),
|
|
20
|
+
...ignorePaths,
|
|
20
21
|
],
|
|
21
22
|
},
|
|
22
23
|
to: {},
|
package/build/types.d.ts
CHANGED
package/build/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,OAAO;IACtB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,OAAO;IACtB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAElB,OAAO,CAAC,EAAE;QACR,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;KACnB,CAAC;CACH"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@voiceflow/dependency-cruiser-config",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.7.0",
|
|
4
4
|
"main": "build/index.js",
|
|
5
5
|
"types": "build/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -12,10 +12,10 @@
|
|
|
12
12
|
"lint:eslint": "yarn g:eslint",
|
|
13
13
|
"lint:fix": "yarn g:run-p -c \"lint:eslint --fix\" \"lint:prettier --write\"",
|
|
14
14
|
"lint:prettier": "yarn g:prettier --check",
|
|
15
|
-
"test:dependencies": "yarn g:depcruise
|
|
15
|
+
"test:dependencies": "yarn g:depcruise"
|
|
16
16
|
},
|
|
17
17
|
"devDependencies": {
|
|
18
|
-
"@voiceflow/tsconfig": "1.6.
|
|
18
|
+
"@voiceflow/tsconfig": "1.6.1"
|
|
19
19
|
},
|
|
20
20
|
"peerDependencies": {
|
|
21
21
|
"dependency-cruiser": "^16"
|
|
@@ -26,5 +26,5 @@
|
|
|
26
26
|
"volta": {
|
|
27
27
|
"extends": "../../package.json"
|
|
28
28
|
},
|
|
29
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "8522bbf45d85c9a5442b0b8f289d770499bcebba"
|
|
30
30
|
}
|