@voiceflow/dependency-cruiser-config 1.2.0 → 1.3.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.js +7 -5
- package/build/config.js.map +1 -1
- package/build/types.d.ts +1 -0
- package/package.json +1 -1
package/build/config.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { IConfiguration } from 'dependency-cruiser';
|
|
2
2
|
import { Options } from './types';
|
|
3
|
-
declare const createConfig: ({ tsconfig, sourceDir, allowTypeCycles }?: Options) => IConfiguration;
|
|
3
|
+
declare const createConfig: ({ tsconfig, sourceDir, allowTypeCycles, ignore }?: Options) => IConfiguration;
|
|
4
4
|
export default createConfig;
|
package/build/config.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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 } = {}) => ({
|
|
4
|
+
const createConfig = ({ tsconfig = 'tsconfig.json', sourceDir = 'src', allowTypeCycles = false, ignore = [] } = {}) => ({
|
|
5
5
|
forbidden: [
|
|
6
6
|
/* rules from the 'recommended' preset: */
|
|
7
7
|
(0, rules_1.noCircularRule)(),
|
|
@@ -33,10 +33,12 @@ const createConfig = ({ tsconfig = 'tsconfig.json', sourceDir = 'src', allowType
|
|
|
33
33
|
- dynamic: a boolean indicating whether to ignore dynamic (true) or static (false) dependencies.
|
|
34
34
|
leave out if you want to exclude neither (recommended!)
|
|
35
35
|
*/
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
36
|
+
exclude: ignore.length
|
|
37
|
+
? {
|
|
38
|
+
path: `(${ignore.join('|')})`,
|
|
39
|
+
// dynamic: true
|
|
40
|
+
}
|
|
41
|
+
: undefined,
|
|
40
42
|
/* pattern specifying which files to include (regular expression)
|
|
41
43
|
dependency-cruiser will skip everything not matching this pattern
|
|
42
44
|
*/
|
package/build/config.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.js","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":";;AAEA,mCAaiB;AAGjB,MAAM,YAAY,GAAG,CAAC,EAAE,QAAQ,GAAG,eAAe,EAAE,SAAS,GAAG,KAAK,EAAE,eAAe,GAAG,KAAK,KAAc,EAAE,EAAkB,EAAE,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"config.js","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":";;AAEA,mCAaiB;AAGjB,MAAM,YAAY,GAAG,CAAC,EAAE,QAAQ,GAAG,eAAe,EAAE,SAAS,GAAG,KAAK,EAAE,eAAe,GAAG,KAAK,EAAE,MAAM,GAAG,EAAE,KAAc,EAAE,EAAkB,EAAE,CAAC,CAAC;IAC/I,SAAS,EAAE;QACT,0CAA0C;QAC1C,IAAA,sBAAc,GAAE;QAChB,IAAA,qBAAa,EAAC,EAAE,WAAW,EAAE,eAAe,EAAE,CAAC;QAC/C,IAAA,4BAAoB,GAAE;QACtB,IAAA,2BAAmB,GAAE;QACrB,IAAA,wBAAgB,GAAE;QAClB,IAAA,6BAAqB,GAAE;QACvB,IAAA,+BAAuB,GAAE;QAEzB,gEAAgE;QAChE,IAAA,qBAAa,GAAE;QACf,IAAA,qBAAa,GAAE;QACf,IAAA,uBAAe,GAAE;QACjB,IAAA,4BAAoB,GAAE;QACtB,IAAA,wBAAgB,GAAE;KACnB;IACD,OAAO,EAAE;QACP;;;;UAIE;QACF,WAAW,EAAE;YACX,IAAI,EAAE,cAAc;YACpB,eAAe,EAAE,CAAC,KAAK,EAAE,SAAS,EAAE,cAAc,EAAE,UAAU,EAAE,aAAa,EAAE,YAAY,CAAC;SAC7F;QAED;;;;UAIE;QACF,OAAO,EAAE,MAAM,CAAC,MAAM;YACpB,CAAC,C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gBACT,QAAQ;gBACR,mDAAmD;gBACnD,6DAA6D;gBAC7D,SAAS;gBACT,QAAQ;gBACR,mDAAmD;gBACnD,yDAAyD;gBACzD,SAAS;gBACT,QAAQ;gBACR,8CAA8C;gBAC9C,2CAA2C;gBAC3C,SAAS;gBACT,QAAQ;gBACR,6CAA6C;gBAC7C,2CAA2C;gBAC3C,QAAQ;gBACR,MAAM;gBACN,IAAI;aACL;YACD,KAAK,EAAE;gBACL;;;;kBAIE;gBACF,eAAe,EAAE,wEAAwE;gBAEzF;;;;;mBAKG;gBACH,WAAW;gBACX,KAAK;aACN;SACF;KACF;CACF,CAAC,CAAC;AAEH,kBAAe,YAAY,CAAC"}
|
package/build/types.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@voiceflow/dependency-cruiser-config",
|
|
3
3
|
"description": "dependency-cruiser config for voiceflow",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.3.0",
|
|
5
5
|
"author": "Ben Teichman",
|
|
6
6
|
"bugs": {
|
|
7
7
|
"url": "https://github.com/voiceflow/dependency-cruiser-config/issues"
|