@o3r/schematics 11.0.0-next.0 → 11.0.0-next.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (175) hide show
  1. package/README.md +5 -1
  2. package/{src/cli → cli}/environment.d.ts.map +1 -1
  3. package/{src/cli → cli}/environment.js +1 -1
  4. package/cli/environment.js.map +1 -0
  5. package/cli/package.json +3 -0
  6. package/package.json +61 -43
  7. package/schematics/ng-add/index.d.ts +3 -1
  8. package/schematics/ng-add/index.d.ts.map +1 -1
  9. package/schematics/ng-add/index.js +36 -25
  10. package/schematics/ng-add/index.js.map +1 -1
  11. package/schematics/ng-add/schema.d.ts +1 -1
  12. package/schematics/ng-add/schema.d.ts.map +1 -1
  13. package/src/interfaces/angular-workspace.d.ts.map +1 -1
  14. package/src/interfaces/index.d.ts +1 -0
  15. package/src/interfaces/index.d.ts.map +1 -1
  16. package/src/interfaces/index.js +1 -0
  17. package/src/interfaces/index.js.map +1 -1
  18. package/src/{rule-factories/interfaces.d.ts → interfaces/rule-factories.d.ts} +2 -2
  19. package/src/interfaces/rule-factories.d.ts.map +1 -0
  20. package/src/{rule-factories/interfaces.js → interfaces/rule-factories.js} +1 -1
  21. package/src/interfaces/rule-factories.js.map +1 -0
  22. package/src/modules/modules.display.rule.d.ts.map +1 -1
  23. package/src/modules/modules.display.rule.js +3 -4
  24. package/src/modules/modules.display.rule.js.map +1 -1
  25. package/src/modules/modules.helpers.d.ts +2 -2
  26. package/src/modules/modules.helpers.d.ts.map +1 -1
  27. package/src/modules/modules.helpers.js +2 -2
  28. package/src/modules/modules.helpers.js.map +1 -1
  29. package/src/public_api.d.ts +6 -1
  30. package/src/public_api.d.ts.map +1 -1
  31. package/src/public_api.js +6 -1
  32. package/src/public_api.js.map +1 -1
  33. package/src/rule-factories/add-imports/index.js.map +1 -1
  34. package/src/rule-factories/check-packages-peers/index.js.map +1 -1
  35. package/src/rule-factories/dev-tools/devtools-registration.js +7 -7
  36. package/src/rule-factories/dev-tools/devtools-registration.js.map +1 -1
  37. package/src/rule-factories/eslint-fix/index.d.ts +8 -3
  38. package/src/rule-factories/eslint-fix/index.d.ts.map +1 -1
  39. package/src/rule-factories/eslint-fix/index.js +5 -3
  40. package/src/rule-factories/eslint-fix/index.js.map +1 -1
  41. package/src/rule-factories/get-test-frameworks/index.js +2 -2
  42. package/src/rule-factories/get-test-frameworks/index.js.map +1 -1
  43. package/src/rule-factories/index.d.ts +1 -1
  44. package/src/rule-factories/index.d.ts.map +1 -1
  45. package/src/rule-factories/index.js +1 -1
  46. package/src/rule-factories/index.js.map +1 -1
  47. package/src/rule-factories/ng-add/dependencies.d.ts +93 -0
  48. package/src/rule-factories/ng-add/dependencies.d.ts.map +1 -0
  49. package/src/rule-factories/ng-add/dependencies.js +174 -0
  50. package/src/rule-factories/ng-add/dependencies.js.map +1 -0
  51. package/src/rule-factories/ng-add/index.d.ts +3 -36
  52. package/src/rule-factories/ng-add/index.d.ts.map +1 -1
  53. package/src/rule-factories/ng-add/index.js +4 -218
  54. package/src/rule-factories/ng-add/index.js.map +1 -1
  55. package/src/rule-factories/ng-add/ng-add.helpers.d.ts +22 -0
  56. package/src/rule-factories/ng-add/ng-add.helpers.d.ts.map +1 -0
  57. package/src/rule-factories/ng-add/ng-add.helpers.js +162 -0
  58. package/src/rule-factories/ng-add/ng-add.helpers.js.map +1 -0
  59. package/src/rule-factories/ng-add/schematics-register.d.ts +17 -0
  60. package/src/rule-factories/ng-add/schematics-register.d.ts.map +1 -0
  61. package/src/rule-factories/ng-add/schematics-register.js +64 -0
  62. package/src/rule-factories/ng-add/schematics-register.js.map +1 -0
  63. package/src/rule-factories/remove-packages/index.js.map +1 -1
  64. package/src/rule-factories/update-imports/index.d.ts +0 -1
  65. package/src/rule-factories/update-imports/index.d.ts.map +1 -1
  66. package/src/rule-factories/update-imports/index.js +0 -1
  67. package/src/rule-factories/update-imports/index.js.map +1 -1
  68. package/src/rule-factories/update-imports/list-of-vars.d.ts +4 -5
  69. package/src/rule-factories/update-imports/list-of-vars.d.ts.map +1 -1
  70. package/src/rule-factories/update-imports/list-of-vars.js.map +1 -1
  71. package/src/rule-factories/update-imports/update-imports-with-scope.d.ts +1 -1
  72. package/src/rule-factories/update-imports/update-imports-with-scope.js +3 -3
  73. package/src/rule-factories/update-imports/update-imports-with-scope.js.map +1 -1
  74. package/src/rule-factories/update-imports/update-ts-imports.d.ts +1 -1
  75. package/src/rule-factories/update-imports/update-ts-imports.d.ts.map +1 -1
  76. package/src/rule-factories/update-imports/update-ts-imports.js +7 -6
  77. package/src/rule-factories/update-imports/update-ts-imports.js.map +1 -1
  78. package/src/rule-factories/vscode-extensions/index.js.map +1 -1
  79. package/src/rules/install.d.ts +8 -4
  80. package/src/rules/install.d.ts.map +1 -1
  81. package/src/rules/install.js +10 -8
  82. package/src/rules/install.js.map +1 -1
  83. package/src/tasks/eslint/index.d.ts +8 -1
  84. package/src/tasks/eslint/index.d.ts.map +1 -1
  85. package/src/tasks/eslint/index.js +8 -1
  86. package/src/tasks/eslint/index.js.map +1 -1
  87. package/src/tasks/ng-add/index.d.ts +1 -0
  88. package/src/tasks/ng-add/index.d.ts.map +1 -1
  89. package/src/tasks/ng-add/index.js +1 -0
  90. package/src/tasks/ng-add/index.js.map +1 -1
  91. package/src/tasks/package-manager/add-dev-dependency.d.ts +1 -0
  92. package/src/tasks/package-manager/add-dev-dependency.d.ts.map +1 -1
  93. package/src/tasks/package-manager/add-dev-dependency.js +4 -3
  94. package/src/tasks/package-manager/add-dev-dependency.js.map +1 -1
  95. package/src/tasks/package-manager/interfaces.d.ts +1 -1
  96. package/src/tasks/package-manager/interfaces.d.ts.map +1 -1
  97. package/src/tasks/package-manager/npm-install.js +3 -3
  98. package/src/tasks/package-manager/npm-install.js.map +1 -1
  99. package/src/utility/ast.d.ts +2 -1
  100. package/src/utility/ast.d.ts.map +1 -1
  101. package/src/utility/ast.js +8 -2
  102. package/src/utility/ast.js.map +1 -1
  103. package/src/utility/builder.js.map +1 -1
  104. package/src/utility/collection.d.ts.map +1 -1
  105. package/src/utility/collection.js +1 -1
  106. package/src/utility/collection.js.map +1 -1
  107. package/src/utility/component.d.ts +1 -1
  108. package/src/utility/component.d.ts.map +1 -1
  109. package/src/utility/component.js.map +1 -1
  110. package/src/utility/dependencies.d.ts.map +1 -1
  111. package/src/utility/dependencies.js +1 -1
  112. package/src/utility/dependencies.js.map +1 -1
  113. package/src/utility/environment.d.ts +1 -0
  114. package/src/utility/environment.d.ts.map +1 -1
  115. package/src/utility/environment.js.map +1 -1
  116. package/src/utility/file-info.d.ts +1 -2
  117. package/src/utility/file-info.d.ts.map +1 -1
  118. package/src/utility/file-info.js.map +1 -1
  119. package/src/utility/generation.d.ts +1 -1
  120. package/src/utility/generation.d.ts.map +1 -1
  121. package/src/utility/generation.js.map +1 -1
  122. package/src/utility/gitignore.d.ts +1 -1
  123. package/src/utility/gitignore.d.ts.map +1 -1
  124. package/src/utility/gitignore.js.map +1 -1
  125. package/src/utility/index.d.ts +2 -0
  126. package/src/utility/index.d.ts.map +1 -1
  127. package/src/utility/index.js +2 -0
  128. package/src/utility/index.js.map +1 -1
  129. package/src/utility/loaders.d.ts +6 -1
  130. package/src/utility/loaders.d.ts.map +1 -1
  131. package/src/utility/loaders.js +10 -2
  132. package/src/utility/loaders.js.map +1 -1
  133. package/src/utility/matching-peers.d.ts +7 -3
  134. package/src/utility/matching-peers.d.ts.map +1 -1
  135. package/src/utility/matching-peers.js +7 -5
  136. package/src/utility/matching-peers.js.map +1 -1
  137. package/src/utility/modules.js.map +1 -1
  138. package/src/utility/monorepo.d.ts +3 -2
  139. package/src/utility/monorepo.d.ts.map +1 -1
  140. package/src/utility/monorepo.js +2 -1
  141. package/src/utility/monorepo.js.map +1 -1
  142. package/src/utility/package-manager-runner.d.ts +1 -1
  143. package/src/utility/package-manager-runner.d.ts.map +1 -1
  144. package/src/utility/package-manager-runner.js.map +1 -1
  145. package/src/utility/package-version.js.map +1 -1
  146. package/src/utility/routes.d.ts +1 -1
  147. package/src/utility/routes.d.ts.map +1 -1
  148. package/src/utility/routes.js.map +1 -1
  149. package/src/utility/sub-entry.d.ts +1 -1
  150. package/src/utility/sub-entry.d.ts.map +1 -1
  151. package/src/utility/sub-entry.js.map +1 -1
  152. package/src/utility/template-property.helper.js.map +1 -1
  153. package/src/utility/update-imports.d.ts.map +1 -1
  154. package/src/utility/update-imports.js +21 -10
  155. package/src/utility/update-imports.js.map +1 -1
  156. package/src/utility/update-pipes.d.ts +15 -0
  157. package/src/utility/update-pipes.d.ts.map +1 -0
  158. package/src/utility/update-pipes.js +82 -0
  159. package/src/utility/update-pipes.js.map +1 -0
  160. package/src/utility/wrapper.d.ts +8 -0
  161. package/src/utility/wrapper.d.ts.map +1 -0
  162. package/src/utility/wrapper.js +87 -0
  163. package/src/utility/wrapper.js.map +1 -0
  164. package/src/cli/environment.js.map +0 -1
  165. package/src/index.d.ts +0 -7
  166. package/src/index.d.ts.map +0 -1
  167. package/src/index.js +0 -10
  168. package/src/index.js.map +0 -1
  169. package/src/rule-factories/interfaces.d.ts.map +0 -1
  170. package/src/rule-factories/interfaces.js.map +0 -1
  171. package/src/rule-factories/update-imports/v7-to-v8-map-object.d.ts +0 -8
  172. package/src/rule-factories/update-imports/v7-to-v8-map-object.d.ts.map +0 -1
  173. package/src/rule-factories/update-imports/v7-to-v8-map-object.js +0 -2049
  174. package/src/rule-factories/update-imports/v7-to-v8-map-object.js.map +0 -1
  175. /package/{src/cli → cli}/environment.d.ts +0 -0
package/README.md CHANGED
@@ -9,6 +9,9 @@ This package is an [Otter Framework Module](https://github.com/AmadeusITGroup/ot
9
9
 
10
10
  ## Description
11
11
 
12
+ [![Stable Version](https://img.shields.io/npm/v/@o3r/schematics?style=for-the-badge)](https://www.npmjs.com/package/@o3r/schematics)
13
+ [![Bundle Size](https://img.shields.io/bundlephobia/min/@o3r/schematics?color=green&style=for-the-badge)](https://www.npmjs.com/package/@o3r/schematics)
14
+
12
15
  This module provides basic utilities and generic rules (install, lint) reused in other package schematics.
13
16
 
14
17
  ## How to install
@@ -17,7 +20,8 @@ This module provides basic utilities and generic rules (install, lint) reused in
17
20
  ng add @o3r/schematics
18
21
  ```
19
22
 
20
- > **Warning**: this module requires [@o3r/core](https://www.npmjs.com/package/@o3r/core) to be installed.
23
+ > [!WARNING]
24
+ > This module requires [@o3r/core](https://www.npmjs.com/package/@o3r/core) to be installed.
21
25
 
22
26
  ## Description
23
27
 
@@ -1 +1 @@
1
- {"version":3,"file":"environment.d.ts","sourceRoot":"","sources":["../../../src/cli/environment.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"environment.d.ts","sourceRoot":"","sources":["../../cli/environment.ts"],"names":[],"mappings":""}
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- const index_1 = require("../utility/index");
3
+ const index_1 = require("../src/utility/index");
4
4
  console.info(`Environment information: ${(0, index_1.getEnvironmentInfoStringify)()}`);
5
5
  //# sourceMappingURL=environment.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"environment.js","sourceRoot":"","sources":["../../cli/environment.ts"],"names":[],"mappings":";;AAAA,gDAAmE;AAEnE,OAAO,CAAC,IAAI,CAAC,4BAA4B,IAAA,mCAA2B,GAAE,EAAE,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ {
2
+ "type": "commonjs"
3
+ }
package/package.json CHANGED
@@ -1,6 +1,9 @@
1
1
  {
2
2
  "name": "@o3r/schematics",
3
- "version": "11.0.0-next.0",
3
+ "version": "11.0.0-next.1",
4
+ "publishConfig": {
5
+ "access": "public"
6
+ },
4
7
  "description": "Schematics module of the Otter framework",
5
8
  "main": "./src/public_api.js",
6
9
  "typings": "./src/public_api.d.ts",
@@ -12,23 +15,27 @@
12
15
  "nx": "nx",
13
16
  "ng": "yarn nx",
14
17
  "build": "yarn nx build schematics",
15
- "postbuild": "patch-package-json-main",
18
+ "postbuild": "yarn cpy 'package.json' dist && patch-package-json-main",
16
19
  "prepare:publish": "prepare-publish ./dist",
17
20
  "prepare:build:builders": "yarn cpy 'schematics/**/*.json' dist/schematics && yarn cpy 'collection.json' dist",
18
- "build:builders": "tsc -b tsconfig.builders.json --pretty && yarn generate-cjs-manifest"
21
+ "build:source": "tsc -b tsconfig.build.json --pretty",
22
+ "build:builders": "tsc -b tsconfig.builders.json --pretty && yarn generate-cjs-manifest",
23
+ "build:cli": "tsc -b tsconfig.cli.json --pretty && yarn generate-cjs-manifest"
19
24
  },
20
25
  "bin": {
21
- "environment": "src/cli/environment.js"
26
+ "o3r-environment": "./cli/environment.js"
22
27
  },
23
28
  "peerDependencies": {
24
- "@angular-devkit/architect": "~0.1700.0",
25
- "@angular-devkit/core": "~17.0.0",
26
- "@angular-devkit/schematics": "~17.0.0",
27
- "@angular/cli": "~17.0.0",
28
- "@schematics/angular": "~17.0.0",
29
+ "@angular-devkit/architect": "~0.1703.0",
30
+ "@angular-devkit/core": "~17.3.0",
31
+ "@angular-devkit/schematics": "~17.3.0",
32
+ "@angular/cli": "~17.3.0",
33
+ "@o3r/telemetry": "^11.0.0-next.1",
34
+ "@schematics/angular": "~17.3.0",
29
35
  "eslint": "^8.42.0",
30
36
  "rxjs": "^7.8.1",
31
- "typescript": "~5.2.2"
37
+ "type-fest": "^4.10.2",
38
+ "typescript": "~5.4.2"
32
39
  },
33
40
  "peerDependenciesMeta": {
34
41
  "@angular-devkit/architect": {
@@ -37,67 +44,78 @@
37
44
  "@angular-devkit/core": {
38
45
  "optional": true
39
46
  },
47
+ "@o3r/telemetry": {
48
+ "optional": true
49
+ },
40
50
  "eslint": {
41
51
  "optional": true
52
+ },
53
+ "type-fest": {
54
+ "optional": true
42
55
  }
43
56
  },
44
57
  "dependencies": {
45
58
  "chalk": "^4.1.2",
46
59
  "globby": "^11.1.0",
60
+ "inquirer": "~8.2.6",
47
61
  "minimatch": "~9.0.3",
48
62
  "semver": "^7.5.2",
49
- "tslib": "^2.5.3"
63
+ "tslib": "^2.6.2"
50
64
  },
51
65
  "devDependencies": {
52
- "@angular-devkit/build-angular": "~17.0.3",
53
- "@angular-devkit/core": "~17.0.3",
54
- "@angular-devkit/schematics": "~17.0.3",
55
- "@angular-eslint/eslint-plugin": "~17.1.0",
56
- "@angular/cli": "~17.0.3",
57
- "@angular/common": "~17.0.4",
58
- "@angular/compiler": "~17.0.4",
59
- "@angular/compiler-cli": "~17.0.4",
60
- "@angular/core": "~17.0.4",
61
- "@angular/platform-browser": "~17.0.4",
62
- "@angular/platform-browser-dynamic": "~17.0.4",
63
- "@babel/core": "~7.23.0",
64
- "@babel/preset-typescript": "~7.23.0",
66
+ "@angular-devkit/build-angular": "~17.3.0",
67
+ "@angular-devkit/core": "~17.3.0",
68
+ "@angular-devkit/schematics": "~17.3.0",
69
+ "@angular-eslint/eslint-plugin": "~17.3.0",
70
+ "@angular/animations": "~17.3.0",
71
+ "@angular/cli": "~17.3.0",
72
+ "@angular/common": "~17.3.0",
73
+ "@angular/compiler": "~17.3.0",
74
+ "@angular/compiler-cli": "~17.3.0",
75
+ "@angular/core": "~17.3.0",
76
+ "@angular/platform-browser": "~17.3.0",
77
+ "@angular/platform-browser-dynamic": "~17.3.0",
78
+ "@babel/core": "~7.24.0",
79
+ "@babel/preset-typescript": "~7.24.0",
65
80
  "@compodoc/compodoc": "^1.1.19",
66
- "@nx/eslint": "~17.1.1",
67
- "@nx/eslint-plugin": "~17.1.1",
68
- "@nx/jest": "~17.1.1",
69
- "@nx/js": "~17.1.1",
70
- "@o3r/build-helpers": "^11.0.0-next.0",
71
- "@o3r/eslint-plugin": "^11.0.0-next.0",
72
- "@schematics/angular": "~17.0.3",
81
+ "@nx/eslint": "~18.3.0",
82
+ "@nx/eslint-plugin": "~18.3.0",
83
+ "@nx/jest": "~18.3.0",
84
+ "@nx/js": "~18.3.0",
85
+ "@o3r/build-helpers": "^11.0.0-next.1",
86
+ "@o3r/eslint-plugin": "^11.0.0-next.1",
87
+ "@o3r/telemetry": "^11.0.0-next.1",
88
+ "@schematics/angular": "~17.3.0",
89
+ "@stylistic/eslint-plugin-ts": "^1.5.4",
90
+ "@types/inquirer": "~8.2.10",
73
91
  "@types/jest": "~29.5.2",
74
92
  "@types/node": "^20.0.0",
75
93
  "@types/semver": "^7.3.13",
76
- "@typescript-eslint/eslint-plugin": "6.11.0",
77
- "@typescript-eslint/parser": "^6.11.0",
94
+ "@typescript-eslint/eslint-plugin": "^7.2.0",
95
+ "@typescript-eslint/parser": "^7.2.0",
78
96
  "cpy-cli": "^5.0.0",
79
- "eslint": "^8.42.0",
80
- "eslint-import-resolver-node": "^0.3.4",
81
- "eslint-plugin-jest": "~27.6.0",
82
- "eslint-plugin-jsdoc": "~48.0.0",
97
+ "eslint": "^8.57.0",
98
+ "eslint-import-resolver-node": "^0.3.9",
99
+ "eslint-plugin-jest": "~27.9.0",
100
+ "eslint-plugin-jsdoc": "~48.2.1",
83
101
  "eslint-plugin-prefer-arrow": "~1.2.3",
84
- "eslint-plugin-unicorn": "^50.0.0",
102
+ "eslint-plugin-unicorn": "^51.0.1",
85
103
  "jest": "~29.7.0",
86
104
  "jest-junit": "~16.0.0",
87
105
  "jsonc-eslint-parser": "~2.4.0",
88
106
  "jsonschema": "~1.4.1",
89
- "nx": "~17.1.1",
107
+ "nx": "~18.3.0",
90
108
  "rxjs": "^7.8.1",
91
- "ts-jest": "~29.1.1",
92
- "type-fest": "^4.3.1",
93
- "typescript": "~5.2.2",
109
+ "ts-jest": "~29.1.2",
110
+ "ts-node": "~10.9.2",
111
+ "type-fest": "^4.10.2",
112
+ "typescript": "~5.4.2",
94
113
  "zone.js": "~0.14.2"
95
114
  },
96
115
  "engines": {
97
116
  "node": ">=18.0.0"
98
117
  },
99
118
  "schematics": "./collection.json",
100
- "type": "commonjs",
101
119
  "contributors": [
102
120
  {
103
121
  "name": "Yannick Adam",
@@ -1,6 +1,8 @@
1
1
  import type { Rule } from '@angular-devkit/schematics';
2
+ import type { NgAddSchematicsSchema } from './schema';
2
3
  /**
3
4
  * Add Otter schematics to an Angular Project
5
+ * @param options
4
6
  */
5
- export declare function ngAdd(): Rule;
7
+ export declare const ngAdd: (options: NgAddSchematicsSchema) => Rule;
6
8
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../schematics/ng-add/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAA0B,MAAM,4BAA4B,CAAC;AAM/E;;GAEG;AACH,wBAAgB,KAAK,IAAI,IAAI,CA0B5B"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../schematics/ng-add/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,4BAA4B,CAAC;AAIvD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAqCtD;;;GAGG;AACH,eAAO,MAAM,KAAK,YAAa,qBAAqB,KAAG,IAGtD,CAAC"}
@@ -1,38 +1,49 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ngAdd = void 0;
4
- const fs = require("node:fs");
4
+ const dependencies_1 = require("@schematics/angular/utility/dependencies");
5
5
  const path = require("node:path");
6
- const rxjs_1 = require("rxjs");
7
6
  /**
8
7
  * Add Otter schematics to an Angular Project
8
+ * @param options schematics options
9
9
  */
10
- function ngAdd() {
10
+ function ngAddFn(options) {
11
11
  const schematicsDependencies = ['@angular-devkit/architect', '@angular-devkit/schematics', '@angular-devkit/core', '@schematics/angular', 'globby'];
12
- return async (tree, context) => {
13
- // eslint-disable-next-line @typescript-eslint/naming-convention
14
- const { AddDevInstall } = await Promise.resolve().then(() => require('@o3r/schematics'));
15
- context.logger.info('Running ng add for schematics');
12
+ return async () => {
16
13
  const packageJsonPath = path.resolve(__dirname, '..', '..', 'package.json');
17
- const treePackageJson = tree.readJson('./package.json');
18
- const packageJsonContent = JSON.parse(fs.readFileSync(packageJsonPath, { encoding: 'utf-8' }));
19
- const getDependencyVersion = (dependency) => packageJsonContent?.dependencies?.[dependency] || packageJsonContent?.peerDependencies?.[dependency];
20
- let packageName = '';
21
- for (const dependency of schematicsDependencies) {
22
- const version = getDependencyVersion(dependency);
23
- context.logger.info(`Installing ${dependency}${version || ''}`);
24
- treePackageJson.devDependencies = { ...treePackageJson.devDependencies, [dependency]: version };
25
- packageName = `${packageName} ${dependency}${version ? '@' + version : ''}`;
26
- }
27
- context.addTask(new AddDevInstall({
28
- hideOutput: false,
29
- packageName,
30
- quiet: false
31
- }));
32
- await (0, rxjs_1.lastValueFrom)(context.engine.executePostTasks());
33
- tree.overwrite('./package.json', JSON.stringify(treePackageJson));
34
- return () => tree;
14
+ const { getExternalDependenciesVersionRange, setupDependencies } = await Promise.resolve().then(() => require('@o3r/schematics'));
15
+ const dependencies = Object.entries(getExternalDependenciesVersionRange(schematicsDependencies, packageJsonPath)).reduce((acc, [dep, range]) => {
16
+ acc[dep] = {
17
+ inManifest: [{
18
+ range,
19
+ types: [dependencies_1.NodeDependencyType.Dev]
20
+ }]
21
+ };
22
+ return acc;
23
+ }, {});
24
+ Object.entries(getExternalDependenciesVersionRange(schematicsDependencies, packageJsonPath))
25
+ .forEach(([dep, range]) => {
26
+ dependencies[dep] = {
27
+ inManifest: [{
28
+ range,
29
+ types: [dependencies_1.NodeDependencyType.Dev]
30
+ }]
31
+ };
32
+ });
33
+ return setupDependencies({
34
+ projectName: options.projectName,
35
+ dependencies,
36
+ skipInstall: false
37
+ });
35
38
  };
36
39
  }
40
+ /**
41
+ * Add Otter schematics to an Angular Project
42
+ * @param options
43
+ */
44
+ const ngAdd = (options) => async () => {
45
+ const { createSchematicWithMetricsIfInstalled } = await Promise.resolve().then(() => require('@o3r/schematics'));
46
+ return createSchematicWithMetricsIfInstalled(ngAddFn)(options);
47
+ };
37
48
  exports.ngAdd = ngAdd;
38
49
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../schematics/ng-add/index.ts"],"names":[],"mappings":";;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K,EAAE,CAAC,iCAAkB,CAAC,GAAG,CAAC;qBAChC,CAAC;aACH,CAAC;YACF,OAAO,GAAG,CAAC;QACb,CAAC,EAAE,EAAqC,CAAC,CAAC;QAC1C,MAAM,CAAC,OAAO,CAAC,mCAAmC,CAAC,sBAAsB,EAAE,eAAe,CAAC,CAAC;aACzF,OAAO,CAAC,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE;YACxB,YAAY,CAAC,GAAG,CAAC,GAAG;gBAClB,UAAU,EAAE,CAAC;wBACX,KAAK;wBACL,KAAK,EAAE,CAAC,iCAAkB,CAAC,GAAG,CAAC;qBAChC,CAAC;aACH,CAAC;QACJ,CAAC,CAAC,CAAC;QACL,OAAO,iBAAiB,CAAC;YACvB,WAAW,EAAE,OAAO,CAAC,WAAW;YAChC,YAAY;YACZ,WAAW,EAAE,KAAK;SACnB,CAAC,CAAC;IACL,CAAC,CAAC;AACJ,CAAC;AAED;;;GAGG;AACI,MAAM,KAAK,GAAG,CAAC,OAA8B,EAAQ,EAAE,CAAC,KAAK,IAAI,EAAE;IACxE,MAAM,EAAE,qCAAqC,EAAE,GAAG,2CAAa,iBAAiB,EAAC,CAAC;IAClF,OAAO,qCAAqC,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,CAAC;AACjE,CAAC,CAAC;AAHW,QAAA,KAAK,SAGhB"}
@@ -1,4 +1,4 @@
1
- import type { SchematicOptionObject } from '@o3r/schematics';
1
+ import type { SchematicOptionObject } from '../../src/public_api';
2
2
  export interface NgAddSchematicsSchema extends SchematicOptionObject {
3
3
  /** Project name */
4
4
  projectName?: string | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../schematics/ng-add/schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAE7D,MAAM,WAAW,qBAAsB,SAAQ,qBAAqB;IAClE,mBAAmB;IACnB,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAClC"}
1
+ {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../schematics/ng-add/schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAElE,MAAM,WAAW,qBAAsB,SAAQ,qBAAqB;IAClE,mBAAmB;IACnB,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAClC"}
@@ -1 +1 @@
1
- {"version":3,"file":"angular-workspace.d.ts","sourceRoot":"","sources":["../../../src/interfaces/angular-workspace.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,QAAQ,IAAI,kBAAkB,EAC9B,MAAM,IAAI,iBAAiB,EAC3B,gBAAgB,EACjB,MAAM,0CAA0C,CAAC;AAElD;;GAEG;AACH,MAAM,MAAM,uBAAuB,GAAG,MAAM,GAAG,SAAS,CAAC;AAEzD,MAAM,WAAW,oBAAoB;IACnC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAChC,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AACD,MAAM,WAAW,aAAa;IAC5B,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAC;CAClB;AAED,8EAA8E;AAC9E,MAAM,WAAW,eAAe;IAC9B,+BAA+B;IAC/B,OAAO,EAAE,MAAM,CAAC;IAChB,kCAAkC;IAClC,OAAO,EAAE,MAAM,CAAC;CACjB;AAGD,MAAM,WAAW,mBAAoB,SAAQ,gBAAgB;IAC3D,qBAAqB,CAAC,EAAE;QACtB,IAAI,EAAE,MAAM,CAAC;KACd,GAAG,mBAAmB,CAAC,KAAK,CAAC,CAAC;IAC/B,mBAAmB,CAAC,EAAE;QACpB,IAAI,EAAE,MAAM,CAAC;KACd,GAAG,mBAAmB,CAAC,KAAK,CAAC,CAAC;IAC/B,iBAAiB,CAAC,EAAE;QAClB,IAAI,EAAE,MAAM,CAAC;KACd,GAAG,mBA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AI,EAAE,MAAM,CAAC;IACb,UAAU,CAAC,EAAE,mBAAmB,CAAC;IACjC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,aAAa,CAAC;CACzB;AAED,MAAM,WAAW,eAAgB,SAAQ,iBAAiB;IACxD,QAAQ,EAAE;QACR,CAAC,CAAC,EAAE,MAAM,GAAG,gBAAgB,CAAC;KAC/B,CAAC;IACF,UAAU,CAAC,EAAE,mBAAmB,CAAC;CAClC"}
@@ -1,3 +1,4 @@
1
1
  export * from './angular-workspace';
2
2
  export * from './schematic-option';
3
+ export * from './rule-factories';
3
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/interfaces/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/interfaces/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC"}
@@ -3,4 +3,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  tslib_1.__exportStar(require("./angular-workspace"), exports);
5
5
  tslib_1.__exportStar(require("./schematic-option"), exports);
6
+ tslib_1.__exportStar(require("./rule-factories"), exports);
6
7
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/interfaces/index.ts"],"names":[],"mappings":";;;AAAA,8DAAoC;AACpC,6DAAmC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/interfaces/index.ts"],"names":[],"mappings":";;;AAAA,8DAAoC;AACpC,6DAAmC;AACnC,2DAAiC"}
@@ -1,6 +1,6 @@
1
- import { Rule } from '@angular-devkit/schematics';
1
+ import type { Rule } from '@angular-devkit/schematics';
2
2
  /** Rule Factory prototype */
3
3
  export type RuleFactory = (options: {
4
4
  [k: string]: unknown;
5
5
  }, rootPath: string) => Rule;
6
- //# sourceMappingURL=interfaces.d.ts.map
6
+ //# sourceMappingURL=rule-factories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rule-factories.d.ts","sourceRoot":"","sources":["../../../src/interfaces/rule-factories.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,4BAA4B,CAAC;AAEvD,6BAA6B;AAC7B,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,EAAE;IAAC,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CAAC,EAAE,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC"}
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=interfaces.js.map
3
+ //# sourceMappingURL=rule-factories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rule-factories.js","sourceRoot":"","sources":["../../../src/interfaces/rule-factories.ts"],"names":[],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"file":"modules.display.rule.d.ts","sourceRoot":"","sources":["../../../src/modules/modules.display.rule.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,4BAA4B,CAAC;AAMvD,0CAA0C;AAC1C,MAAM,WAAW,wBAAwB;IACvC;;;OAGG;IACH,cAAc,EAAE,MAAM,EAAE,GAAG,SAAS,MAAM,EAAE,CAAC;IAC7C;;;OAGG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB,6DAA6D;IAC7D,cAAc,EAAE,OAAO,CAAC;IACxB,oEAAoE;IACpE,uBAAuB,EAAE,OAAO,CAAC;IACjC,8DAA8D;IAC9D,WAAW,EAAE,MAAM,CAAC;CACrB;AAED;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC,wBAAwB,CAAC,GAAG,IAAI,CAiCvF"}
1
+ {"version":3,"file":"modules.display.rule.d.ts","sourceRoot":"","sources":["../../../src/modules/modules.display.rule.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,4BAA4B,CAAC;AAMvD,0CAA0C;AAC1C,MAAM,WAAW,wBAAwB;IACvC;;;OAGG;IACH,cAAc,EAAE,MAAM,EAAE,GAAG,SAAS,MAAM,EAAE,CAAC;IAC7C;;;OAGG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB,6DAA6D;IAC7D,cAAc,EAAE,OAAO,CAAC;IACxB,oEAAoE;IACpE,uBAAuB,EAAE,OAAO,CAAC;IACjC,8DAA8D;IAC9D,WAAW,EAAE,MAAM,CAAC;CACrB;AAED;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC,wBAAwB,CAAC,GAAG,IAAI,CAgCvF"}
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.displayModuleListRule = void 0;
4
4
  const node_os_1 = require("node:os");
5
5
  const modules_constants_1 = require("./modules.constants");
6
- const utility_1 = require("../utility");
6
+ const index_1 = require("../utility/index");
7
7
  const modules_helpers_1 = require("./modules.helpers");
8
8
  /**
9
9
  * Display the list of available Otter modules
@@ -14,8 +14,7 @@ function displayModuleListRule(options) {
14
14
  const keyword = options?.keyword || modules_constants_1.OTTER_MODULE_KEYWORD;
15
15
  return async (tree, context) => {
16
16
  const tagMap = { [modules_constants_1.OTTER_KEYWORD_CMS]: 'CMS enabler' };
17
- // const { getAvailableModulesWithLatestPackage, formatModuleDescription, getWorkspaceConfig, getPackageManagerExecutor } = await import('@o3r/schematics');
18
- const workspaceConfig = (0, utility_1.getWorkspaceConfig)(tree);
17
+ const workspaceConfig = (0, index_1.getWorkspaceConfig)(tree);
19
18
  try {
20
19
  const modules = await (0, modules_helpers_1.getAvailableModulesWithLatestPackage)(keyword, {
21
20
  scopeWhitelist,
@@ -25,7 +24,7 @@ function displayModuleListRule(options) {
25
24
  });
26
25
  const message = modules
27
26
  .filter((mod) => !options?.onlyCmsModules || mod.keywords?.includes(modules_constants_1.OTTER_KEYWORD_CMS))
28
- .map((mod) => (0, modules_helpers_1.formatModuleDescription)(mod, (0, utility_1.getPackageManagerExecutor)(workspaceConfig, options?.packageName), tagMap))
27
+ .map((mod) => (0, modules_helpers_1.formatModuleDescription)(mod, (0, index_1.getPackageManagerExecutor)(workspaceConfig, options?.packageName), tagMap))
29
28
  .filter((msg) => !!msg)
30
29
  .join(node_os_1.EOL + node_os_1.EOL);
31
30
  if (message) {
@@ -1 +1 @@
1
- {"version":3,"file":"modules.display.rule.js","sourceRoot":"","sources":["../../../src/modules/modules.display.rule.ts"],"names":[],"mappings":";;;AACA,qCAA8B;AAC9B,2DAA2G;AAC3G,wCAA2E;AAC3E,uDAAkG;AAsBlG;;;GAGG;AACH,SAAgB,qBAAqB,CAAC,OAA2C;IAE/E,MAAM,cAAc,GAAG,OAAO,EAAE,cAAc,IAAI,iDAA6B,CAAC;IAChF,MAAM,OAAO,GAAG,OAAO,EAAE,OAAO,IAAI,wCAAoB,CAAC;IAEzD,OAAO,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE;QAC7B,MAAM,MAAM,GAA2B,EAAE,CAAC,qCAAiB,CAAC,EAAE,aAAa,EAAE,CAAC;QAE9E,4JAA4J;QAC5J,MAAM,eAAe,GAAG,IAAA,4BAAkB,EAAC,IAAI,CAAC,CAAC;QACjD,IAAI;YACF,MAAM,OAAO,GAAG,MAAM,IAAA,sDAAoC,EAAC,OAAO,EAAE;gBAClE,cAAc;gBACd,gBAAgB,EAAE,CAAC,CAAC,OAAO,EAAE,uBAAuB;gBACpD,MAAM,EAAE,OAAO,CAAC,MAAM;gBACtB,eAAe;aAChB,CAAC,CAAC;YACH,MAAM,OAAO,GAAG,OAAO;iBACpB,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CA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AhCD,sDAgCC"}
@@ -1,12 +1,12 @@
1
1
  import { NpmRegistryPackage } from './modules.constants';
2
2
  import type { logging } from '@angular-devkit/core';
3
- import { PackageManagerOptions } from '../utility';
3
+ import { type PackageManagerOptions } from '../utility/index';
4
4
  /**
5
5
  * Determine if the given keyword is an Otter tag
6
6
  * @param keyword Keyword to identify
7
7
  * @param expect tag expected for the Otter keyword
8
8
  */
9
- export declare const isOtterTag: <T extends string | undefined>(keyword: any, expect?: T | undefined) => keyword is `otter-${T extends undefined ? "" : T}`;
9
+ export declare const isOtterTag: <T extends string | undefined>(keyword: any, expect?: T) => keyword is `otter-${T extends undefined ? "" : T}`;
10
10
  /** Options for getAvailableModules function */
11
11
  export interface AvailableModuleOptions extends PackageManagerOptions {
12
12
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"modules.helpers.d.ts","sourceRoot":"","sources":["../../../src/modules/modules.helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAuH,MAAM,qBAAqB,CAAC;AAG9K,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAUpD,OAAO,EAAqB,qBAAqB,EAAE,MAAM,YAAY,CAAC;AAkDtE;;;;GAIG;AACH,eAAO,MAAM,UAAU,0CAA2C,GAAG,+EAGpE,CAAC;AAEF,+CAA+C;AAC/C,MAAM,WAAW,sBAAuB,SAAQ,qBAAqB;IACnE;;;OAGG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAE3B;;;OAGG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED;;;;;GAKG;AACH,wBAAsB,mBAAmB,CAAC,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,EAAE,GAAG,SAAS,MAAM,EAAE,EAAE,OAAO,CAAC,EAAE,sBAAsB,GAAG,OAAO,CAAC,kBAAkB,EAAE,CAAC,CAsBxK;AAED,gEAAgE;AAChE,MAAM,WAAW,uCAAwC,SAAQ,sBAAsB;I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,EAAE,CAAC;CAC/C;AAED;;;;;GAKG;AACH,wBAAsB,oCAAoC,CAAC,OAAO,oBAA+B,EAAE,OAAO,EAAE,uCAAuC,GAAG,OAAO,CAAC,kBAAkB,EAAE,CAAC,CAoBlL;AAED;;;;;;GAMG;AACH,wBAAgB,uBAAuB,CACnC,UAAU,EAAE,kBAAkB,EAC9B,MAAM,SAAQ,EACd,WAAW,GAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAM,EACxC,MAAM,CAAC,EAAE,OAAO,CAAC,SAAS,UA8B7B"}
@@ -11,7 +11,7 @@ const path = require("node:path");
11
11
  const node_util_1 = require("node:util");
12
12
  const node_child_process_1 = require("node:child_process");
13
13
  const chalk = require("chalk");
14
- const utility_1 = require("../utility");
14
+ const index_1 = require("../utility/index");
15
15
  const DEFAULT_NPM_REGISTRY = 'registry.npmjs.org';
16
16
  async function promiseGetRequest(url) {
17
17
  const res = await new Promise((resolve, reject) => (0, node_https_1.get)(url, resolve)
@@ -31,7 +31,7 @@ async function promiseGetRequest(url) {
31
31
  * @param logger
32
32
  */
33
33
  async function npmSearchExec(search, packageManagerOptions, logger) {
34
- const manager = (0, utility_1.getPackageManager)(packageManagerOptions);
34
+ const manager = (0, index_1.getPackageManager)(packageManagerOptions);
35
35
  switch (manager) {
36
36
  case 'npm': {
37
37
  const remoteModulesPromise = (0, node_util_1.promisify)(node_child_process_1.execFile)('npm', ['search', search, '--json']);
@@ -1 +1 @@
1
- {"version":3,"file":"modules.helpers.js","sourceRoot":"","sources":["../../../src/modules/modules.helpers.ts"],"names":[],"mappings":";;;AAAA,2DAA8K;AAI9K,gEAAoE;AACpE,mCAAmC;AACnC,2CAAiC;AACjC,qCAA8B;AAC9B,8BAA8B;AAC9B,kCAAkC;AAClC,yCAAsC;AACtC,2DAA8C;AAC9C,+BAA+B;AAC/B,wCAAsE;AAEtE,MAAM,oBAAoB,GAAG,oBAAoB,CAAC;AAElD,KAAK,UAAU,iBAAiB,CAAuB,GAAW;IAChE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AAA,kBAAS,EAAC,YAAY,EAAE,cAAc,CAAC,CAAC,CAAC,CAAC,GAAG,GAAG,KAAK,CAAC,MAAM,CAAC,yBAAyB,cAAc,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IAEzK,MAAM,KAAK,GAAG;QACZ,KAAK,CAAC,IAAI,CAAC,GAAG,MAAM,WAAW,KAAK,CAAC,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE,CAAC,GAAG,eAAe;QAC/E,KAAK,CAAC,MAAM,CAAC,UAAU,CAAC,WAAW,IAAI,kBAAkB,CAAC;QAC1D,GAAG,CAAC,UAAU,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,eAAe,UAAU,CAAC,KAAK,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;QAC7F,GAAG,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;KAC3F,CAAC;IACF,OAAO,KAAK,CAAC,IAAI,CAAC,aAAG,CAAC,CAAC;AACzB,CAAC;AAlCD,0DAkCC"}
@@ -1,2 +1,7 @@
1
- export * from './index';
1
+ export * from './interfaces/index';
2
+ export * from './rule-factories/index';
3
+ export * from './rules/index';
4
+ export * from './tasks/index';
5
+ export * from './utility/index';
6
+ export * from './modules/index';
2
7
  //# sourceMappingURL=public_api.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"public_api.d.ts","sourceRoot":"","sources":["../../src/public_api.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC"}
1
+ {"version":3,"file":"public_api.d.ts","sourceRoot":"","sources":["../../src/public_api.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AACvC,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC"}
package/src/public_api.js CHANGED
@@ -1,5 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
- tslib_1.__exportStar(require("./index"), exports);
4
+ tslib_1.__exportStar(require("./interfaces/index"), exports);
5
+ tslib_1.__exportStar(require("./rule-factories/index"), exports);
6
+ tslib_1.__exportStar(require("./rules/index"), exports);
7
+ tslib_1.__exportStar(require("./tasks/index"), exports);
8
+ tslib_1.__exportStar(require("./utility/index"), exports);
9
+ tslib_1.__exportStar(require("./modules/index"), exports);
5
10
  //# sourceMappingURL=public_api.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"public_api.js","sourceRoot":"","sources":["../../src/public_api.ts"],"names":[],"mappings":";;;AAAA,kDAAwB"}
1
+ {"version":3,"file":"public_api.js","sourceRoot":"","sources":["../../src/public_api.ts"],"names":[],"mappings":";;;AAAA,6DAAmC;AACnC,iEAAuC;AACvC,wDAA8B;AAC9B,wDAA8B;AAC9B,0DAAgC;AAChC,0DAAgC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/rule-factories/add-imports/index.ts"],"names":[],"mappings":";;;AACA,qEAAqE;AACrE,+DAAmF;AACnF,iCAAiC;AAEjC;;;;GAIG;AACI,MAAM,cAAc,GAAG,CAC5B,QAAgB,EAChB,OAGG,EACG,EAAE,CAAC,CAAC,IAAI,EAAE,OAAO,EAAE,EAAE;IAC3B,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE;QAC1B,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,qCAAqC,QAAQ,kBAAkB,CAAC,CAAC;QAC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