@voiceflow/dependency-cruiser-config 1.4.1 → 1.6.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.
Files changed (66) hide show
  1. package/build/config.d.ts +4 -3
  2. package/build/config.d.ts.map +1 -0
  3. package/build/config.js +7 -6
  4. package/build/index.d.ts +1 -0
  5. package/build/index.d.ts.map +1 -0
  6. package/build/index.js +0 -1
  7. package/build/rules/index.d.ts +1 -0
  8. package/build/rules/index.d.ts.map +1 -0
  9. package/build/rules/index.js +0 -1
  10. package/build/rules/noCircular.d.ts +2 -1
  11. package/build/rules/noCircular.d.ts.map +1 -0
  12. package/build/rules/noCircular.js +0 -1
  13. package/build/rules/noDeprecatedCore.d.ts +2 -1
  14. package/build/rules/noDeprecatedCore.d.ts.map +1 -0
  15. package/build/rules/noDeprecatedCore.js +0 -1
  16. package/build/rules/noDuplicateDepTypes.d.ts +2 -1
  17. package/build/rules/noDuplicateDepTypes.d.ts.map +1 -0
  18. package/build/rules/noDuplicateDepTypes.js +1 -1
  19. package/build/rules/noNonPackage.d.ts +2 -1
  20. package/build/rules/noNonPackage.d.ts.map +1 -0
  21. package/build/rules/noNonPackage.js +0 -1
  22. package/build/rules/noOrphans.d.ts +2 -1
  23. package/build/rules/noOrphans.d.ts.map +1 -0
  24. package/build/rules/noOrphans.js +0 -1
  25. package/build/rules/notToDeprecated.d.ts +2 -1
  26. package/build/rules/notToDeprecated.d.ts.map +1 -0
  27. package/build/rules/notToDeprecated.js +0 -1
  28. package/build/rules/notToDevDep.d.ts +2 -1
  29. package/build/rules/notToDevDep.d.ts.map +1 -0
  30. package/build/rules/notToDevDep.js +0 -1
  31. package/build/rules/notToSpec.d.ts +2 -1
  32. package/build/rules/notToSpec.d.ts.map +1 -0
  33. package/build/rules/notToSpec.js +0 -1
  34. package/build/rules/notToTest.d.ts +2 -1
  35. package/build/rules/notToTest.d.ts.map +1 -0
  36. package/build/rules/notToTest.js +0 -1
  37. package/build/rules/notToUnresolvable.d.ts +2 -1
  38. package/build/rules/notToUnresolvable.d.ts.map +1 -0
  39. package/build/rules/notToUnresolvable.js +0 -1
  40. package/build/rules/warnOptionalDeps.d.ts +2 -1
  41. package/build/rules/warnOptionalDeps.d.ts.map +1 -0
  42. package/build/rules/warnOptionalDeps.js +0 -1
  43. package/build/rules/warnPeerDeps.d.ts +2 -1
  44. package/build/rules/warnPeerDeps.d.ts.map +1 -0
  45. package/build/rules/warnPeerDeps.js +0 -1
  46. package/build/types.d.ts +2 -1
  47. package/build/types.d.ts.map +1 -0
  48. package/build/types.js +0 -1
  49. package/package.json +19 -66
  50. package/README.md +0 -7
  51. package/build/config.js.map +0 -1
  52. package/build/index.js.map +0 -1
  53. package/build/rules/index.js.map +0 -1
  54. package/build/rules/noCircular.js.map +0 -1
  55. package/build/rules/noDeprecatedCore.js.map +0 -1
  56. package/build/rules/noDuplicateDepTypes.js.map +0 -1
  57. package/build/rules/noNonPackage.js.map +0 -1
  58. package/build/rules/noOrphans.js.map +0 -1
  59. package/build/rules/notToDeprecated.js.map +0 -1
  60. package/build/rules/notToDevDep.js.map +0 -1
  61. package/build/rules/notToSpec.js.map +0 -1
  62. package/build/rules/notToTest.js.map +0 -1
  63. package/build/rules/notToUnresolvable.js.map +0 -1
  64. package/build/rules/warnOptionalDeps.js.map +0 -1
  65. package/build/rules/warnPeerDeps.js.map +0 -1
  66. package/build/types.js.map +0 -1
package/build/config.d.ts CHANGED
@@ -1,4 +1,5 @@
1
- import { IConfiguration } from 'dependency-cruiser';
2
- import { Options } from './types';
3
- declare const createConfig: ({ tsconfig, sourceDir, allowTypeCycles, ignore }?: Options) => IConfiguration;
1
+ import type { IConfiguration } from 'dependency-cruiser';
2
+ import type { Options } from './types';
3
+ declare const createConfig: ({ tsconfig, sourceDir, allowTypeCycles, ignore, }?: Options) => IConfiguration;
4
4
  export default createConfig;
5
+ //# sourceMappingURL=config.d.ts.map
@@ -0,0 +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,uDAKf,OAAO,KAAQ,cAmOhB,CAAC;AAEH,eAAe,YAAY,CAAC"}
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, ignore = [] } = {}) => ({
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)(),
@@ -25,7 +25,7 @@ const createConfig = ({ tsconfig = 'tsconfig.json', sourceDir = 'src', allowType
25
25
  for a complete list
26
26
  */
27
27
  doNotFollow: {
28
- path: 'node_modules',
28
+ path: ['node_modules', 'build', 'sonar'],
29
29
  dependencyTypes: ['npm', 'npm-dev', 'npm-optional', 'npm-peer', 'npm-bundled', 'npm-no-pkg'],
30
30
  },
31
31
  /* conditions specifying which dependencies to exclude
@@ -77,9 +77,11 @@ const createConfig = ({ tsconfig = 'tsconfig.json', sourceDir = 'src', allowType
77
77
  dependency-cruiser's current working directory). When not provided
78
78
  defaults to './tsconfig.json'.
79
79
  */
80
- tsConfig: {
81
- fileName: tsconfig,
82
- },
80
+ ...(tsconfig && {
81
+ tsConfig: {
82
+ fileName: tsconfig,
83
+ },
84
+ }),
83
85
  /* Webpack configuration to use to get resolve options from.
84
86
 
85
87
  The (optional) fileName attribute specifies which file to take (relative
@@ -212,4 +214,3 @@ const createConfig = ({ tsconfig = 'tsconfig.json', sourceDir = 'src', allowType
212
214
  },
213
215
  });
214
216
  exports.default = createConfig;
215
- //# sourceMappingURL=config.js.map
package/build/index.d.ts CHANGED
@@ -3,3 +3,4 @@ export { createConfig };
3
3
  export * from './rules';
4
4
  declare const defaultConfig: import("dependency-cruiser").IConfiguration;
5
5
  export default defaultConfig;
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,YAAY,MAAM,UAAU,CAAC;AAEpC,OAAO,EAAE,YAAY,EAAE,CAAC;AACxB,cAAc,SAAS,CAAC;AAExB,QAAA,MAAM,aAAa,6CAAiB,CAAC;AAErC,eAAe,aAAa,CAAC"}
package/build/index.js CHANGED
@@ -23,4 +23,3 @@ exports.createConfig = config_1.default;
23
23
  __exportStar(require("./rules"), exports);
24
24
  const defaultConfig = (0, config_1.default)();
25
25
  exports.default = defaultConfig;
26
- //# sourceMappingURL=index.js.map
@@ -10,3 +10,4 @@ export { notToTestRule } from './notToTest';
10
10
  export { notToUnresolvableRule } from './notToUnresolvable';
11
11
  export { warnOptionalDepsRule } from './warnOptionalDeps';
12
12
  export { warnPeerDepsRule } from './warnPeerDeps';
13
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/rules/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC1D,OAAO,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AAChE,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC1D,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC"}
@@ -25,4 +25,3 @@ var warnOptionalDeps_1 = require("./warnOptionalDeps");
25
25
  Object.defineProperty(exports, "warnOptionalDepsRule", { enumerable: true, get: function () { return warnOptionalDeps_1.warnOptionalDepsRule; } });
26
26
  var warnPeerDeps_1 = require("./warnPeerDeps");
27
27
  Object.defineProperty(exports, "warnPeerDepsRule", { enumerable: true, get: function () { return warnPeerDeps_1.warnPeerDepsRule; } });
28
- //# sourceMappingURL=index.js.map
@@ -1,2 +1,3 @@
1
- import { IRegularForbiddenRuleType } from 'dependency-cruiser';
1
+ import type { IRegularForbiddenRuleType } from 'dependency-cruiser';
2
2
  export declare const noCircularRule: () => IRegularForbiddenRuleType;
3
+ //# sourceMappingURL=noCircular.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"noCircular.d.ts","sourceRoot":"","sources":["../../src/rules/noCircular.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAC;AAEpE,eAAO,MAAM,cAAc,QAAO,yBAUhC,CAAC"}
@@ -12,4 +12,3 @@ const noCircularRule = () => ({
12
12
  },
13
13
  });
14
14
  exports.noCircularRule = noCircularRule;
15
- //# sourceMappingURL=noCircular.js.map
@@ -1,2 +1,3 @@
1
- import { IRegularForbiddenRuleType } from 'dependency-cruiser';
1
+ import type { IRegularForbiddenRuleType } from 'dependency-cruiser';
2
2
  export declare const noDeprecatedCoreRule: () => IRegularForbiddenRuleType;
3
+ //# sourceMappingURL=noDeprecatedCore.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"noDeprecatedCore.d.ts","sourceRoot":"","sources":["../../src/rules/noDeprecatedCore.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAC;AAEpE,eAAO,MAAM,oBAAoB,QAAO,yBAiCtC,CAAC"}
@@ -35,4 +35,3 @@ const noDeprecatedCoreRule = () => ({
35
35
  },
36
36
  });
37
37
  exports.noDeprecatedCoreRule = noDeprecatedCoreRule;
38
- //# sourceMappingURL=noDeprecatedCore.js.map
@@ -1,2 +1,3 @@
1
- import { IRegularForbiddenRuleType } from 'dependency-cruiser';
1
+ import type { IRegularForbiddenRuleType } from 'dependency-cruiser';
2
2
  export declare const noDuplicateDepTypesRule: () => IRegularForbiddenRuleType;
3
+ //# sourceMappingURL=noDuplicateDepTypes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"noDuplicateDepTypes.d.ts","sourceRoot":"","sources":["../../src/rules/noDuplicateDepTypes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAC;AAEpE,eAAO,MAAM,uBAAuB,QAAO,yBAYzC,CAAC"}
@@ -10,7 +10,7 @@ const noDuplicateDepTypesRule = () => ({
10
10
  from: {},
11
11
  to: {
12
12
  moreThanOneDependencyType: true,
13
+ dependencyTypesNot: ['type-only'],
13
14
  },
14
15
  });
15
16
  exports.noDuplicateDepTypesRule = noDuplicateDepTypesRule;
16
- //# sourceMappingURL=noDuplicateDepTypes.js.map
@@ -1,2 +1,3 @@
1
- import { IRegularForbiddenRuleType } from 'dependency-cruiser';
1
+ import type { IRegularForbiddenRuleType } from 'dependency-cruiser';
2
2
  export declare const noNonPackageRule: () => IRegularForbiddenRuleType;
3
+ //# sourceMappingURL=noNonPackage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"noNonPackage.d.ts","sourceRoot":"","sources":["../../src/rules/noNonPackage.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAC;AAEpE,eAAO,MAAM,gBAAgB,QAAO,yBAYlC,CAAC"}
@@ -14,4 +14,3 @@ const noNonPackageRule = () => ({
14
14
  },
15
15
  });
16
16
  exports.noNonPackageRule = noNonPackageRule;
17
- //# sourceMappingURL=noNonPackage.js.map
@@ -1,5 +1,6 @@
1
- import { IRegularForbiddenRuleType } from 'dependency-cruiser';
1
+ import type { IRegularForbiddenRuleType } from 'dependency-cruiser';
2
2
  export interface NoOrphansOptions {
3
3
  ignoreTypes?: boolean;
4
4
  }
5
5
  export declare const noOrphansRule: ({ ignoreTypes }?: NoOrphansOptions) => IRegularForbiddenRuleType;
6
+ //# sourceMappingURL=noOrphans.d.ts.map
@@ -0,0 +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;CACvB;AAED,eAAO,MAAM,aAAa,qBAA6B,gBAAgB,KAAQ,yBAoB7E,CAAC"}
@@ -22,4 +22,3 @@ const noOrphansRule = ({ ignoreTypes = false } = {}) => ({
22
22
  to: {},
23
23
  });
24
24
  exports.noOrphansRule = noOrphansRule;
25
- //# sourceMappingURL=noOrphans.js.map
@@ -1,2 +1,3 @@
1
- import { IRegularForbiddenRuleType } from 'dependency-cruiser';
1
+ import type { IRegularForbiddenRuleType } from 'dependency-cruiser';
2
2
  export declare const notToDeprecatedRule: () => IRegularForbiddenRuleType;
3
+ //# sourceMappingURL=notToDeprecated.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notToDeprecated.d.ts","sourceRoot":"","sources":["../../src/rules/notToDeprecated.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAC;AAEpE,eAAO,MAAM,mBAAmB,QAAO,yBAUrC,CAAC"}
@@ -12,4 +12,3 @@ const notToDeprecatedRule = () => ({
12
12
  },
13
13
  });
14
14
  exports.notToDeprecatedRule = notToDeprecatedRule;
15
- //# sourceMappingURL=notToDeprecated.js.map
@@ -1,2 +1,3 @@
1
- import { IRegularForbiddenRuleType } from 'dependency-cruiser';
1
+ import type { IRegularForbiddenRuleType } from 'dependency-cruiser';
2
2
  export declare const notToDevDepRule: () => IRegularForbiddenRuleType;
3
+ //# sourceMappingURL=notToDevDep.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notToDevDep.d.ts","sourceRoot":"","sources":["../../src/rules/notToDevDep.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAC;AAEpE,eAAO,MAAM,eAAe,QAAO,yBAgBjC,CAAC"}
@@ -18,4 +18,3 @@ const notToDevDepRule = () => ({
18
18
  },
19
19
  });
20
20
  exports.notToDevDepRule = notToDevDepRule;
21
- //# sourceMappingURL=notToDevDep.js.map
@@ -1,2 +1,3 @@
1
- import { IRegularForbiddenRuleType } from 'dependency-cruiser';
1
+ import type { IRegularForbiddenRuleType } from 'dependency-cruiser';
2
2
  export declare const notToSpecRule: () => IRegularForbiddenRuleType;
3
+ //# sourceMappingURL=notToSpec.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notToSpec.d.ts","sourceRoot":"","sources":["../../src/rules/notToSpec.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAC;AAEpE,eAAO,MAAM,aAAa,QAAO,yBAW/B,CAAC"}
@@ -13,4 +13,3 @@ const notToSpecRule = () => ({
13
13
  },
14
14
  });
15
15
  exports.notToSpecRule = notToSpecRule;
16
- //# sourceMappingURL=notToSpec.js.map
@@ -1,2 +1,3 @@
1
- import { IRegularForbiddenRuleType } from 'dependency-cruiser';
1
+ import type { IRegularForbiddenRuleType } from 'dependency-cruiser';
2
2
  export declare const notToTestRule: () => IRegularForbiddenRuleType;
3
+ //# sourceMappingURL=notToTest.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notToTest.d.ts","sourceRoot":"","sources":["../../src/rules/notToTest.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAC;AAEpE,eAAO,MAAM,aAAa,QAAO,yBAa/B,CAAC"}
@@ -15,4 +15,3 @@ const notToTestRule = () => ({
15
15
  },
16
16
  });
17
17
  exports.notToTestRule = notToTestRule;
18
- //# sourceMappingURL=notToTest.js.map
@@ -1,2 +1,3 @@
1
- import { IRegularForbiddenRuleType } from 'dependency-cruiser';
1
+ import type { IRegularForbiddenRuleType } from 'dependency-cruiser';
2
2
  export declare const notToUnresolvableRule: () => IRegularForbiddenRuleType;
3
+ //# sourceMappingURL=notToUnresolvable.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notToUnresolvable.d.ts","sourceRoot":"","sources":["../../src/rules/notToUnresolvable.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAC;AAEpE,eAAO,MAAM,qBAAqB,QAAO,yBAUvC,CAAC"}
@@ -12,4 +12,3 @@ const notToUnresolvableRule = () => ({
12
12
  },
13
13
  });
14
14
  exports.notToUnresolvableRule = notToUnresolvableRule;
15
- //# sourceMappingURL=notToUnresolvable.js.map
@@ -1,2 +1,3 @@
1
- import { IRegularForbiddenRuleType } from 'dependency-cruiser';
1
+ import type { IRegularForbiddenRuleType } from 'dependency-cruiser';
2
2
  export declare const warnOptionalDepsRule: () => IRegularForbiddenRuleType;
3
+ //# sourceMappingURL=warnOptionalDeps.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"warnOptionalDeps.d.ts","sourceRoot":"","sources":["../../src/rules/warnOptionalDeps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAC;AAEpE,eAAO,MAAM,oBAAoB,QAAO,yBAYtC,CAAC"}
@@ -14,4 +14,3 @@ const warnOptionalDepsRule = () => ({
14
14
  },
15
15
  });
16
16
  exports.warnOptionalDepsRule = warnOptionalDepsRule;
17
- //# sourceMappingURL=warnOptionalDeps.js.map
@@ -1,2 +1,3 @@
1
- import { IRegularForbiddenRuleType } from 'dependency-cruiser';
1
+ import type { IRegularForbiddenRuleType } from 'dependency-cruiser';
2
2
  export declare const warnPeerDepsRule: () => IRegularForbiddenRuleType;
3
+ //# sourceMappingURL=warnPeerDeps.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"warnPeerDeps.d.ts","sourceRoot":"","sources":["../../src/rules/warnPeerDeps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAC;AAEpE,eAAO,MAAM,gBAAgB,QAAO,yBAYlC,CAAC"}
@@ -14,4 +14,3 @@ const warnPeerDepsRule = () => ({
14
14
  },
15
15
  });
16
16
  exports.warnPeerDepsRule = warnPeerDepsRule;
17
- //# sourceMappingURL=warnPeerDeps.js.map
package/build/types.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  export interface Options {
2
- tsconfig?: string;
2
+ tsconfig?: string | null;
3
3
  sourceDir?: string;
4
4
  allowTypeCycles?: boolean;
5
5
  ignore?: string[];
6
6
  }
7
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +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;CACnB"}
package/build/types.js CHANGED
@@ -1,3 +1,2 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=types.js.map
package/package.json CHANGED
@@ -1,77 +1,30 @@
1
1
  {
2
2
  "name": "@voiceflow/dependency-cruiser-config",
3
- "description": "dependency-cruiser config for voiceflow",
4
- "version": "1.4.1",
5
- "author": "Ben Teichman",
6
- "bugs": {
7
- "url": "https://github.com/voiceflow/dependency-cruiser-config/issues"
8
- },
9
- "config": {
10
- "commitizen": {
11
- "path": "./node_modules/cz-conventional-changelog"
12
- }
3
+ "version": "1.6.0",
4
+ "main": "build/index.js",
5
+ "types": "build/index.d.ts",
6
+ "files": [
7
+ "build/**"
8
+ ],
9
+ "scripts": {
10
+ "build": "yarn g:build:pkg",
11
+ "lint": "yarn g:run-p -c lint:eslint lint:prettier",
12
+ "lint:eslint": "yarn g:eslint",
13
+ "lint:fix": "yarn g:run-p -c \"lint:eslint --fix\" \"lint:prettier --write\"",
14
+ "lint:prettier": "yarn g:prettier --check",
15
+ "test:dependencies": "yarn g:depcruise ."
13
16
  },
14
17
  "devDependencies": {
15
- "@istanbuljs/nyc-config-typescript": "^1.0.2",
16
- "@types/chai": "4.3.0",
17
- "@types/chai-as-promised": "^7.1.4",
18
- "@types/git-branch": "2.0.2",
19
- "@types/node": "ts5.3",
20
- "@voiceflow/commitlint-config": "2.1.0",
21
- "@voiceflow/eslint-config": "^7.1.0",
22
- "@voiceflow/git-branch-check": "1.4.1",
23
- "@voiceflow/prettier-config": "1.3.0",
24
- "@voiceflow/tsconfig": "1.4.8",
25
- "@zerollup/ts-transform-paths": "^1.7.18",
26
- "commitizen": "^4.2.4",
27
- "commitlint": "16.1.0",
28
- "cz-conventional-changelog": "^3.3.0",
29
- "dependency-cruiser": "16.2.0",
30
- "eslint": "^8.56.0",
31
- "fixpack": "^4.0.0",
32
- "husky": "7.0.4",
33
- "lint-staged": "12.2.2",
34
- "prettier": "^2.8.8",
35
- "rimraf": "^5.0.5",
36
- "tsc-alias": "^1.8.0",
37
- "typescript": "5.3.3"
18
+ "@voiceflow/tsconfig": "1.6.0"
38
19
  },
39
- "engines": {
40
- "node": "20"
41
- },
42
- "files": [
43
- "build"
44
- ],
45
- "homepage": "https://github.com/voiceflow/dependency-cruiser-config#readme",
46
- "keywords": [
47
- "config",
48
- "dependency-cruiser"
49
- ],
50
- "license": "MIT",
51
- "main": "build/index.js",
52
- "packageManager": "yarn@3.2.1",
53
20
  "peerDependencies": {
54
21
  "dependency-cruiser": "^16"
55
22
  },
56
- "prettier": "@voiceflow/prettier-config",
57
- "repository": {
58
- "type": "git",
59
- "url": "git+https://github.com/voiceflow/dependency-cruiser-config.git"
60
- },
61
- "scripts": {
62
- "build": "yarn clean && tsc --project ./tsconfig.build.json && yarn tsc-alias -p tsconfig.build.json",
63
- "clean": "rimraf build",
64
- "commit": "git-cz",
65
- "lint": "eslint \"./**/*.{js,ts}\"",
66
- "lint:fix": "yarn lint --fix",
67
- "lint:quiet": "yarn lint --quiet",
68
- "lint:report": "yarn lint --format json -o sonar/report.json",
69
- "prepare": "husky install",
70
- "test": "yarn test:run",
71
- "test:dependencies": "depcruise src"
23
+ "engines": {
24
+ "node": "20"
72
25
  },
73
26
  "volta": {
74
- "node": "20.10.0",
75
- "yarn": "3.2.1"
76
- }
27
+ "extends": "../../package.json"
28
+ },
29
+ "gitHead": "990dda6a0fb4d6f0f4fa383bbf1b24d1ad0051e7"
77
30
  }
package/README.md DELETED
@@ -1,7 +0,0 @@
1
- # dependency-cruiser-config
2
-
3
- ## Install
4
-
5
- ```bash
6
- yarn add -D @voiceflow/dependency-cruiser-config
7
- ```
@@ -1 +0,0 @@
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,CA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AExB,MAAM,aAAa,GAAG,IAAA,gBAAY,GAAE,CAAC;AAErC,kBAAe,aAAa,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/rules/index.ts"],"names":[],"mappings":";;;AAAA,2CAA8C;AAArC,4GAAA,cAAc,OAAA;AACvB,uDAA0D;AAAjD,wHAAA,oBAAoB,OAAA;AAC7B,6DAAgE;AAAvD,8HAAA,uBAAuB,OAAA;AAChC,+CAAkD;AAAzC,gHAAA,gBAAgB,OAAA;AACzB,yCAA4C;AAAnC,0GAAA,aAAa,OAAA;AACtB,qDAAwD;AAA/C,sHAAA,mBAAmB,OAAA;AAC5B,6CAAgD;AAAvC,8GAAA,eAAe,OAAA;AACxB,yCAA4C;AAAnC,0GAAA,aAAa,OAAA;AACtB,yCAA4C;AAAnC,0GAAA,aAAa,OAAA;AACtB,yDAA4D;AAAnD,0HAAA,qBAAqB,OAAA;AAC9B,uDAA0D;AAAjD,wHAAA,oBAAoB,OAAA;AAC7B,+CAAkD;AAAzC,gHAAA,gBAAgB,OAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"noCircular.js","sourceRoot":"","sources":["../../src/rules/noCircular.ts"],"names":[],"mappings":";;;AAEO,MAAM,cAAc,GAAG,GAA8B,EAAE,CAAC,CAAC;IAC9D,IAAI,EAAE,aAAa;IACnB,QAAQ,EAAE,OAAO;IACjB,OAAO,EACL,+EAA+E;QAC/E,oGAAoG;IACtG,IAAI,EAAE,EAAE;IACR,EAAE,EAAE;QACF,QAAQ,EAAE,IAAI;KACf;CACF,CAAC,CAAC;AAVU,QAAA,cAAc,kBAUxB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"noDeprecatedCore.js","sourceRoot":"","sources":["../../src/rules/noDeprecatedCore.ts"],"names":[],"mappings":";;;AAEO,MAAM,oBAAoB,GAAG,GAA8B,EAAE,CAAC,CAAC;IACpE,IAAI,EAAE,oBAAoB;IAC1B,OAAO,EACL,mGAAmG;QACnG,kDAAkD;IACpD,QAAQ,EAAE,OAAO;IACjB,IAAI,EAAE,EAAE;IACR,EAAE,EAAE;QACF,eAAe,EAAE,CAAC,MAAM,CAAC;QACzB,IAAI,EAAE;YACJ,sBAAsB;YACtB,wBAAwB;YACxB,wBAAwB;YACxB,wBAAwB;YACxB,2BAA2B;YAC3B,sBAAsB;YACtB,wBAAwB;YACxB,wBAAwB;YACxB,mCAAmC;YACnC,4BAA4B;YAC5B,+BAA+B;YAC/B,8CAA8C;YAC9C,4CAA4C;YAC5C,iBAAiB;YACjB,YAAY;YACZ,cAAc;YACd,YAAY;YACZ,eAAe;YACf,SAAS;YACT,eAAe;YACf,kBAAkB;SACnB;KACF;CACF,CAAC,CAAC;AAjCU,QAAA,oBAAoB,wBAiC9B"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"noDuplicateDepTypes.js","sourceRoot":"","sources":["../../src/rules/noDuplicateDepTypes.ts"],"names":[],"mappings":";;;AAEO,MAAM,uBAAuB,GAAG,GAA8B,EAAE,CAAC,CAAC;IACvE,IAAI,EAAE,wBAAwB;IAC9B,OAAO,EACL,uFAAuF;QACvF,0FAA0F;QAC1F,gCAAgC;IAClC,QAAQ,EAAE,MAAM;IAChB,IAAI,EAAE,EAAE;IACR,EAAE,EAAE;QACF,yBAAyB,EAAE,IAAI;KAChC;CACF,CAAC,CAAC;AAXU,QAAA,uBAAuB,2BAWjC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"noNonPackage.js","sourceRoot":"","sources":["../../src/rules/noNonPackage.ts"],"names":[],"mappings":";;;AAEO,MAAM,gBAAgB,GAAG,GAA8B,EAAE,CAAC,CAAC;IAChE,IAAI,EAAE,qBAAqB;IAC3B,QAAQ,EAAE,OAAO;IACjB,OAAO,EACL,uGAAuG;QACvG,8FAA8F;QAC9F,qGAAqG;QACrG,uBAAuB;IACzB,IAAI,EAAE,EAAE;IACR,EAAE,EAAE;QACF,eAAe,EAAE,CAAC,YAAY,EAAE,aAAa,CAAC;KAC/C;CACF,CAAC,CAAC;AAZU,QAAA,gBAAgB,oBAY1B"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"noOrphans.js","sourceRoot":"","sources":["../../src/rules/noOrphans.ts"],"names":[],"mappings":";;;AAMO,MAAM,aAAa,GAAG,CAAC,EAAE,WAAW,GAAG,KAAK,KAAuB,EAAE,EAA6B,EAAE,CAAC,CAAC;IAC3G,IAAI,EAAE,YAAY;IAClB,OAAO,EACL,+EAA+E;QAC/E,iFAAiF;QACjF,+EAA+E;QAC/E,qFAAqF;QACrF,yEAAyE;IAC3E,QAAQ,EAAE,OAAO;IACjB,IAAI,EAAE;QACJ,MAAM,EAAE,IAAI;QACZ,OAAO,EAAE;YACP,uCAAuC,EAAE,YAAY;YACrD,YAAY,EAAE,+BAA+B;YAC7C,uBAAuB,EAAE,oBAAoB;YAC7C,uDAAuD,EAAE,gBAAgB;YACzE,GAAG,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,kBAAkB,EAAE,oBAAoB,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;SACnE;KACF;IACD,EAAE,EAAE,EAAE;CACP,CAAC,CAAC;AApBU,QAAA,aAAa,iBAoBvB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"notToDeprecated.js","sourceRoot":"","sources":["../../src/rules/notToDeprecated.ts"],"names":[],"mappings":";;;AAEO,MAAM,mBAAmB,GAAG,GAA8B,EAAE,CAAC,CAAC;IACnE,IAAI,EAAE,mBAAmB;IACzB,OAAO,EACL,oGAAoG;QACpG,yFAAyF;IAC3F,QAAQ,EAAE,OAAO;IACjB,IAAI,EAAE,EAAE;IACR,EAAE,EAAE;QACF,eAAe,EAAE,CAAC,YAAY,CAAC;KAChC;CACF,CAAC,CAAC;AAVU,QAAA,mBAAmB,uBAU7B"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"notToDevDep.js","sourceRoot":"","sources":["../../src/rules/notToDevDep.ts"],"names":[],"mappings":";;;AAEO,MAAM,eAAe,GAAG,GAA8B,EAAE,CAAC,CAAC;IAC/D,IAAI,EAAE,gBAAgB;IACtB,QAAQ,EAAE,OAAO;IACjB,OAAO,EACL,mFAAmF;QACnF,8FAA8F;QAC9F,4FAA4F;QAC5F,mFAAmF;QACnF,oFAAoF;IACtF,IAAI,EAAE;QACJ,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,mEAAmE;KAC7E;IACD,EAAE,EAAE;QACF,eAAe,EAAE,CAAC,SAAS,CAAC;KAC7B;CACF,CAAC,CAAC;AAhBU,QAAA,eAAe,mBAgBzB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"notToSpec.js","sourceRoot":"","sources":["../../src/rules/notToSpec.ts"],"names":[],"mappings":";;;AAEO,MAAM,aAAa,GAAG,GAA8B,EAAE,CAAC,CAAC;IAC7D,IAAI,EAAE,aAAa;IACnB,OAAO,EACL,qGAAqG;QACrG,6FAA6F;QAC7F,yFAAyF;IAC3F,QAAQ,EAAE,OAAO;IACjB,IAAI,EAAE,EAAE;IACR,EAAE,EAAE;QACF,IAAI,EAAE,mEAAmE;KAC1E;CACF,CAAC,CAAC;AAXU,QAAA,aAAa,iBAWvB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"notToTest.js","sourceRoot":"","sources":["../../src/rules/notToTest.ts"],"names":[],"mappings":";;;AAEO,MAAM,aAAa,GAAG,GAA8B,EAAE,CAAC,CAAC;IAC7D,IAAI,EAAE,aAAa;IACnB,OAAO,EACL,6FAA6F;QAC7F,4FAA4F;QAC5F,4DAA4D;IAC9D,QAAQ,EAAE,OAAO;IACjB,IAAI,EAAE;QACJ,OAAO,EAAE,SAAS;KACnB;IACD,EAAE,EAAE;QACF,IAAI,EAAE,SAAS;KAChB;CACF,CAAC,CAAC;AAbU,QAAA,aAAa,iBAavB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"notToUnresolvable.js","sourceRoot":"","sources":["../../src/rules/notToUnresolvable.ts"],"names":[],"mappings":";;;AAEO,MAAM,qBAAqB,GAAG,GAA8B,EAAE,CAAC,CAAC;IACrE,IAAI,EAAE,qBAAqB;IAC3B,OAAO,EACL,4FAA4F;QAC5F,6FAA6F;IAC/F,QAAQ,EAAE,OAAO;IACjB,IAAI,EAAE,EAAE;IACR,EAAE,EAAE;QACF,eAAe,EAAE,IAAI;KACtB;CACF,CAAC,CAAC;AAVU,QAAA,qBAAqB,yBAU/B"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"warnOptionalDeps.js","sourceRoot":"","sources":["../../src/rules/warnOptionalDeps.ts"],"names":[],"mappings":";;;AAEO,MAAM,oBAAoB,GAAG,GAA8B,EAAE,CAAC,CAAC;IACpE,IAAI,EAAE,oBAAoB;IAC1B,QAAQ,EAAE,MAAM;IAChB,OAAO,EACL,mFAAmF;QACnF,2FAA2F;QAC3F,kFAAkF;QAClF,iCAAiC;IACnC,IAAI,EAAE,EAAE;IACR,EAAE,EAAE;QACF,eAAe,EAAE,CAAC,cAAc,CAAC;KAClC;CACF,CAAC,CAAC;AAZU,QAAA,oBAAoB,wBAY9B"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"warnPeerDeps.js","sourceRoot":"","sources":["../../src/rules/warnPeerDeps.ts"],"names":[],"mappings":";;;AAEO,MAAM,gBAAgB,GAAG,GAA8B,EAAE,CAAC,CAAC;IAChE,IAAI,EAAE,gBAAgB;IACtB,OAAO,EACL,8EAA8E;QAC9E,kFAAkF;QAClF,kFAAkF;QAClF,4DAA4D;IAC9D,QAAQ,EAAE,MAAM;IAChB,IAAI,EAAE,EAAE;IACR,EAAE,EAAE;QACF,eAAe,EAAE,CAAC,UAAU,CAAC;KAC9B;CACF,CAAC,CAAC;AAZU,QAAA,gBAAgB,oBAY1B"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":""}