@abp/ng.schematics 10.5.0 → 10.6.0-rc.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.
Files changed (259) hide show
  1. package/commands/ai-config/index.d.ts +3 -3
  2. package/commands/ai-config/index.js +88 -88
  3. package/commands/ai-config/index.js.map +1 -1
  4. package/commands/ai-config/model.d.ts +10 -10
  5. package/commands/ai-config/model.js +2 -2
  6. package/commands/api/files-service/proxy/__namespace@dir__/__name@kebab__.service.ts.template +6 -4
  7. package/commands/api/index.d.ts +2 -2
  8. package/commands/api/index.js +139 -138
  9. package/commands/api/index.js.map +1 -1
  10. package/commands/change-theme/index.d.ts +28 -28
  11. package/commands/change-theme/index.js +474 -473
  12. package/commands/change-theme/index.js.map +1 -1
  13. package/commands/change-theme/model.d.ts +5 -5
  14. package/commands/change-theme/model.js +2 -2
  15. package/commands/change-theme/style-map.d.ts +16 -16
  16. package/commands/change-theme/style-map.js +424 -424
  17. package/commands/change-theme/theme-options.enum.d.ts +6 -6
  18. package/commands/change-theme/theme-options.enum.js +11 -11
  19. package/commands/change-theme/theme-options.enum.js.map +1 -1
  20. package/commands/create-lib/index.d.ts +13 -13
  21. package/commands/create-lib/index.js +298 -298
  22. package/commands/create-lib/index.js.map +1 -1
  23. package/commands/create-lib/models/generate-lib-schema.d.ts +20 -20
  24. package/commands/create-lib/models/generate-lib-schema.js +8 -8
  25. package/commands/create-lib/models/generate-lib-schema.js.map +1 -1
  26. package/commands/create-lib/models/index.d.ts +1 -1
  27. package/commands/create-lib/models/index.js +4 -17
  28. package/commands/create-lib/models/index.js.map +1 -1
  29. package/commands/proxy-add/index.d.ts +2 -2
  30. package/commands/proxy-add/index.js +41 -41
  31. package/commands/proxy-add/index.js.map +1 -1
  32. package/commands/proxy-index/index.d.ts +5 -5
  33. package/commands/proxy-index/index.js +14 -14
  34. package/commands/proxy-index/index.js.map +1 -1
  35. package/commands/proxy-refresh/index.d.ts +3 -3
  36. package/commands/proxy-refresh/index.js +27 -27
  37. package/commands/proxy-refresh/index.js.map +1 -1
  38. package/commands/proxy-remove/index.d.ts +3 -3
  39. package/commands/proxy-remove/index.js +33 -33
  40. package/commands/proxy-remove/index.js.map +1 -1
  41. package/commands/ssr-add/index.d.ts +11 -11
  42. package/commands/ssr-add/index.js +360 -361
  43. package/commands/ssr-add/index.js.map +1 -1
  44. package/commands/ssr-add/server/index.d.ts +10 -10
  45. package/commands/ssr-add/server/index.js +209 -205
  46. package/commands/ssr-add/server/index.js.map +1 -1
  47. package/commands/ssr-add/server/index.ts +6 -2
  48. package/constants/api.d.ts +1 -1
  49. package/constants/api.js +4 -4
  50. package/constants/index.d.ts +4 -4
  51. package/constants/index.js +7 -20
  52. package/constants/index.js.map +1 -1
  53. package/constants/proxy.d.ts +4 -4
  54. package/constants/proxy.js +7 -7
  55. package/constants/symbols.d.ts +1 -1
  56. package/constants/symbols.js +4 -4
  57. package/constants/system-types.d.ts +1 -1
  58. package/constants/system-types.js +29 -29
  59. package/constants/volo.d.ts +5 -5
  60. package/constants/volo.js +34 -34
  61. package/enums/binding-source-id.d.ts +8 -7
  62. package/enums/binding-source-id.js +12 -11
  63. package/enums/binding-source-id.js.map +1 -1
  64. package/enums/exception.d.ts +17 -17
  65. package/enums/exception.js +2 -2
  66. package/enums/import-keyword.d.ts +4 -4
  67. package/enums/import-keyword.js +8 -8
  68. package/enums/import-keyword.js.map +1 -1
  69. package/enums/index.d.ts +5 -5
  70. package/enums/index.js +8 -21
  71. package/enums/index.js.map +1 -1
  72. package/enums/method-modifier.d.ts +6 -6
  73. package/enums/method-modifier.js +10 -10
  74. package/enums/method-modifier.js.map +1 -1
  75. package/enums/service-types.d.ts +6 -6
  76. package/enums/service-types.js +10 -10
  77. package/enums/service-types.js.map +1 -1
  78. package/index.d.ts +3 -3
  79. package/index.js +6 -19
  80. package/index.js.map +1 -1
  81. package/models/api-definition.d.ts +97 -93
  82. package/models/api-definition.js +2 -2
  83. package/models/generate-proxy-schema.d.ts +28 -28
  84. package/models/generate-proxy-schema.js +2 -2
  85. package/models/import.d.ts +11 -11
  86. package/models/import.js +13 -13
  87. package/models/index.d.ts +11 -11
  88. package/models/index.js +14 -27
  89. package/models/index.js.map +1 -1
  90. package/models/method.d.ts +36 -34
  91. package/models/method.js +73 -70
  92. package/models/method.js.map +1 -1
  93. package/models/model.d.ts +48 -48
  94. package/models/model.js +76 -76
  95. package/models/model.js.map +1 -1
  96. package/models/project.d.ts +5 -5
  97. package/models/project.js +2 -2
  98. package/models/proxy-config.d.ts +4 -4
  99. package/models/proxy-config.js +2 -2
  100. package/models/rule.d.ts +2 -2
  101. package/models/rule.js +2 -2
  102. package/models/service.d.ts +21 -21
  103. package/models/service.js +11 -11
  104. package/models/tree.d.ts +1 -1
  105. package/models/tree.js +2 -2
  106. package/models/util.d.ts +7 -7
  107. package/models/util.js +2 -2
  108. package/package.json +6 -6
  109. package/utils/angular/add-declaration-to-ng-module.d.ts +20 -20
  110. package/utils/angular/add-declaration-to-ng-module.js +45 -45
  111. package/utils/angular/add-declaration-to-ng-module.js.map +1 -1
  112. package/utils/angular/ast-utils.d.ts +106 -106
  113. package/utils/angular/ast-utils.js +518 -518
  114. package/utils/angular/ast-utils.js.map +1 -1
  115. package/utils/angular/change.d.ts +68 -68
  116. package/utils/angular/change.js +121 -121
  117. package/utils/angular/change.js.map +1 -1
  118. package/utils/angular/dependencies.d.ts +23 -23
  119. package/utils/angular/dependencies.js +56 -56
  120. package/utils/angular/dependencies.js.map +1 -1
  121. package/utils/angular/dependency.d.ts +96 -96
  122. package/utils/angular/dependency.js +123 -122
  123. package/utils/angular/dependency.js.map +1 -1
  124. package/utils/angular/eol.d.ts +8 -8
  125. package/utils/angular/eol.js +22 -23
  126. package/utils/angular/eol.js.map +1 -1
  127. package/utils/angular/find-module.d.ts +33 -33
  128. package/utils/angular/find-module.js +105 -105
  129. package/utils/angular/find-module.js.map +1 -1
  130. package/utils/angular/generate-from-files.d.ts +19 -19
  131. package/utils/angular/generate-from-files.js +48 -49
  132. package/utils/angular/generate-from-files.js.map +1 -1
  133. package/utils/angular/index.d.ts +15 -15
  134. package/utils/angular/index.js +18 -31
  135. package/utils/angular/index.js.map +1 -1
  136. package/utils/angular/json-file.d.ts +24 -24
  137. package/utils/angular/json-file.js +71 -71
  138. package/utils/angular/json-file.js.map +1 -1
  139. package/utils/angular/latest-versions/index.d.ts +28 -28
  140. package/utils/angular/latest-versions/index.js +31 -31
  141. package/utils/angular/ng-ast-utils.d.ts +12 -12
  142. package/utils/angular/ng-ast-utils.js +79 -79
  143. package/utils/angular/ng-ast-utils.js.map +1 -1
  144. package/utils/angular/parse-name.d.ts +13 -13
  145. package/utils/angular/parse-name.js +19 -20
  146. package/utils/angular/parse-name.js.map +1 -1
  147. package/utils/angular/paths.d.ts +8 -8
  148. package/utils/angular/paths.js +17 -18
  149. package/utils/angular/paths.js.map +1 -1
  150. package/utils/angular/project-targets.d.ts +11 -11
  151. package/utils/angular/project-targets.js +21 -22
  152. package/utils/angular/project-targets.js.map +1 -1
  153. package/utils/angular/standalone/app_component.d.ts +29 -29
  154. package/utils/angular/standalone/app_component.js +107 -107
  155. package/utils/angular/standalone/app_component.js.map +1 -1
  156. package/utils/angular/standalone/app_config.d.ts +23 -23
  157. package/utils/angular/standalone/app_config.js +89 -89
  158. package/utils/angular/standalone/app_config.js.map +1 -1
  159. package/utils/angular/standalone/code_block.d.ts +53 -53
  160. package/utils/angular/standalone/code_block.js +80 -79
  161. package/utils/angular/standalone/code_block.js.map +1 -1
  162. package/utils/angular/standalone/index.d.ts +9 -9
  163. package/utils/angular/standalone/index.js +13 -13
  164. package/utils/angular/standalone/rules.d.ts +45 -45
  165. package/utils/angular/standalone/rules.js +187 -188
  166. package/utils/angular/standalone/rules.js.map +1 -1
  167. package/utils/angular/standalone/util.d.ts +35 -35
  168. package/utils/angular/standalone/util.js +135 -135
  169. package/utils/angular/standalone/util.js.map +1 -1
  170. package/utils/angular/test/create-app-module.d.ts +9 -9
  171. package/utils/angular/test/create-app-module.js +14 -15
  172. package/utils/angular/test/create-app-module.js.map +1 -1
  173. package/utils/angular/test/get-file-content.d.ts +9 -9
  174. package/utils/angular/test/get-file-content.js +17 -18
  175. package/utils/angular/test/get-file-content.js.map +1 -1
  176. package/utils/angular/test/index.d.ts +9 -9
  177. package/utils/angular/test/index.js +12 -25
  178. package/utils/angular/test/index.js.map +1 -1
  179. package/utils/angular/validation.d.ts +10 -10
  180. package/utils/angular/validation.js +28 -28
  181. package/utils/angular/validation.js.map +1 -1
  182. package/utils/angular/workspace-models.d.ts +167 -167
  183. package/utils/angular/workspace-models.js +43 -43
  184. package/utils/angular/workspace-models.js.map +1 -1
  185. package/utils/angular/workspace.d.ts +65 -65
  186. package/utils/angular/workspace.js +135 -135
  187. package/utils/angular/workspace.js.map +1 -1
  188. package/utils/angular-schematic/generate-lib.d.ts +3 -3
  189. package/utils/angular-schematic/generate-lib.js +52 -53
  190. package/utils/angular-schematic/generate-lib.js.map +1 -1
  191. package/utils/angular-schematic/index.d.ts +1 -1
  192. package/utils/angular-schematic/index.js +4 -17
  193. package/utils/angular-schematic/index.js.map +1 -1
  194. package/utils/api.d.ts +2 -2
  195. package/utils/api.js +7 -8
  196. package/utils/api.js.map +1 -1
  197. package/utils/ast.d.ts +5 -5
  198. package/utils/ast.js +28 -28
  199. package/utils/ast.js.map +1 -1
  200. package/utils/barrel.d.ts +4 -4
  201. package/utils/barrel.js +86 -87
  202. package/utils/barrel.js.map +1 -1
  203. package/utils/common.d.ts +11 -11
  204. package/utils/common.js +78 -78
  205. package/utils/common.js.map +1 -1
  206. package/utils/enum.d.ts +18 -18
  207. package/utils/enum.js +39 -40
  208. package/utils/enum.js.map +1 -1
  209. package/utils/file.d.ts +2 -2
  210. package/utils/file.js +8 -9
  211. package/utils/file.js.map +1 -1
  212. package/utils/generics.d.ts +26 -26
  213. package/utils/generics.js +89 -89
  214. package/utils/generics.js.map +1 -1
  215. package/utils/import.d.ts +3 -3
  216. package/utils/import.js +10 -11
  217. package/utils/import.js.map +1 -1
  218. package/utils/index.d.ts +22 -22
  219. package/utils/index.js +25 -38
  220. package/utils/index.js.map +1 -1
  221. package/utils/methods.d.ts +4 -4
  222. package/utils/methods.js +31 -31
  223. package/utils/methods.js.map +1 -1
  224. package/utils/model.d.ts +14 -14
  225. package/utils/model.js +217 -211
  226. package/utils/model.js.map +1 -1
  227. package/utils/namespace.d.ts +1 -1
  228. package/utils/namespace.js +17 -18
  229. package/utils/namespace.js.map +1 -1
  230. package/utils/ng-module.d.ts +46 -46
  231. package/utils/ng-module.js +126 -125
  232. package/utils/ng-module.js.map +1 -1
  233. package/utils/path.d.ts +2 -2
  234. package/utils/path.js +35 -36
  235. package/utils/path.js.map +1 -1
  236. package/utils/rule.d.ts +4 -4
  237. package/utils/rule.js +32 -33
  238. package/utils/rule.js.map +1 -1
  239. package/utils/service.d.ts +8 -8
  240. package/utils/service.js +280 -171
  241. package/utils/service.js.map +1 -1
  242. package/utils/source.d.ts +13 -13
  243. package/utils/source.js +165 -165
  244. package/utils/source.js.map +1 -1
  245. package/utils/standalone.d.ts +59 -59
  246. package/utils/standalone.js +146 -145
  247. package/utils/standalone.js.map +1 -1
  248. package/utils/text.d.ts +10 -10
  249. package/utils/text.js +59 -59
  250. package/utils/text.js.map +1 -1
  251. package/utils/tree.d.ts +14 -14
  252. package/utils/tree.js +83 -83
  253. package/utils/tree.js.map +1 -1
  254. package/utils/type.d.ts +13 -13
  255. package/utils/type.js +112 -113
  256. package/utils/type.js.map +1 -1
  257. package/utils/workspace.d.ts +20 -20
  258. package/utils/workspace.js +113 -114
  259. package/utils/workspace.js.map +1 -1
@@ -1,57 +1,57 @@
1
- "use strict";
2
- /**
3
- * @license
4
- * Copyright Google LLC All Rights Reserved.
5
- *
6
- * Use of this source code is governed by an MIT-style license that can be
7
- * found in the LICENSE file at https://angular.dev/license
8
- */
9
- Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.getPackageJsonDependency = exports.removePackageJsonDependency = exports.addPackageJsonDependency = exports.NodeDependencyType = void 0;
11
- const json_file_1 = require("./json-file");
12
- const PKG_JSON_PATH = '/package.json';
13
- var NodeDependencyType;
14
- (function (NodeDependencyType) {
15
- NodeDependencyType["Default"] = "dependencies";
16
- NodeDependencyType["Dev"] = "devDependencies";
17
- NodeDependencyType["Peer"] = "peerDependencies";
18
- NodeDependencyType["Optional"] = "optionalDependencies";
19
- })(NodeDependencyType = exports.NodeDependencyType || (exports.NodeDependencyType = {}));
20
- const ALL_DEPENDENCY_TYPE = [
21
- NodeDependencyType.Default,
22
- NodeDependencyType.Dev,
23
- NodeDependencyType.Optional,
24
- NodeDependencyType.Peer,
25
- ];
26
- function addPackageJsonDependency(tree, dependency, pkgJsonPath = PKG_JSON_PATH) {
27
- const json = new json_file_1.JSONFile(tree, pkgJsonPath);
28
- const { overwrite, type, name, version } = dependency;
29
- const path = [type, name];
30
- if (overwrite || !json.get(path)) {
31
- json.modify(path, version);
32
- }
33
- }
34
- exports.addPackageJsonDependency = addPackageJsonDependency;
35
- function removePackageJsonDependency(tree, name, pkgJsonPath = PKG_JSON_PATH) {
36
- const json = new json_file_1.JSONFile(tree, pkgJsonPath);
37
- for (const depType of ALL_DEPENDENCY_TYPE) {
38
- json.remove([depType, name]);
39
- }
40
- }
41
- exports.removePackageJsonDependency = removePackageJsonDependency;
42
- function getPackageJsonDependency(tree, name, pkgJsonPath = PKG_JSON_PATH) {
43
- const json = new json_file_1.JSONFile(tree, pkgJsonPath);
44
- for (const depType of ALL_DEPENDENCY_TYPE) {
45
- const version = json.get([depType, name]);
46
- if (typeof version === 'string') {
47
- return {
48
- type: depType,
49
- name: name,
50
- version,
51
- };
52
- }
53
- }
54
- return null;
55
- }
56
- exports.getPackageJsonDependency = getPackageJsonDependency;
1
+ "use strict";
2
+ /**
3
+ * @license
4
+ * Copyright Google LLC All Rights Reserved.
5
+ *
6
+ * Use of this source code is governed by an MIT-style license that can be
7
+ * found in the LICENSE file at https://angular.dev/license
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.NodeDependencyType = void 0;
11
+ exports.addPackageJsonDependency = addPackageJsonDependency;
12
+ exports.removePackageJsonDependency = removePackageJsonDependency;
13
+ exports.getPackageJsonDependency = getPackageJsonDependency;
14
+ const json_file_1 = require("./json-file");
15
+ const PKG_JSON_PATH = '/package.json';
16
+ var NodeDependencyType;
17
+ (function (NodeDependencyType) {
18
+ NodeDependencyType["Default"] = "dependencies";
19
+ NodeDependencyType["Dev"] = "devDependencies";
20
+ NodeDependencyType["Peer"] = "peerDependencies";
21
+ NodeDependencyType["Optional"] = "optionalDependencies";
22
+ })(NodeDependencyType || (exports.NodeDependencyType = NodeDependencyType = {}));
23
+ const ALL_DEPENDENCY_TYPE = [
24
+ NodeDependencyType.Default,
25
+ NodeDependencyType.Dev,
26
+ NodeDependencyType.Optional,
27
+ NodeDependencyType.Peer,
28
+ ];
29
+ function addPackageJsonDependency(tree, dependency, pkgJsonPath = PKG_JSON_PATH) {
30
+ const json = new json_file_1.JSONFile(tree, pkgJsonPath);
31
+ const { overwrite, type, name, version } = dependency;
32
+ const path = [type, name];
33
+ if (overwrite || !json.get(path)) {
34
+ json.modify(path, version);
35
+ }
36
+ }
37
+ function removePackageJsonDependency(tree, name, pkgJsonPath = PKG_JSON_PATH) {
38
+ const json = new json_file_1.JSONFile(tree, pkgJsonPath);
39
+ for (const depType of ALL_DEPENDENCY_TYPE) {
40
+ json.remove([depType, name]);
41
+ }
42
+ }
43
+ function getPackageJsonDependency(tree, name, pkgJsonPath = PKG_JSON_PATH) {
44
+ const json = new json_file_1.JSONFile(tree, pkgJsonPath);
45
+ for (const depType of ALL_DEPENDENCY_TYPE) {
46
+ const version = json.get([depType, name]);
47
+ if (typeof version === 'string') {
48
+ return {
49
+ type: depType,
50
+ name: name,
51
+ version,
52
+ };
53
+ }
54
+ }
55
+ return null;
56
+ }
57
57
  //# sourceMappingURL=dependencies.js.map
@@ -1 +1 @@
1
- {"version":3,"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AED,SAAgB,wBAAwB,CACtC,IAAU,EACV,IAAY,EACZ,WAAW,GAAG,aAAa;IAE3B,MAAM,IAAI,GAAG,IAAI,oBAAQ,CAAC,IAAI,EAAE,WAAW,CAAC,CAAC;IAE7C,KAAK,MAAM,OAAO,IAAI,mBAAmB,EAAE;QACzC,MAAM,OAAO,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC,CAAC;QAE1C,IAAI,OAAO,OAAO,KAAK,QAAQ,EAAE;YAC/B,OAAO;gBACL,IAAI,EAAE,OAAO;gBACb,IAAI,EAAE,IAAI;gBACV,OAAO;aACR,CAAC;SACH;KACF;IAED,OAAO,IAAI,CAAC;AACd,CAAC;AApBD,4DAoBC"}
1
+ {"version":3,"file":"dependencies.js","sourceRoot":"","sources":["../../../../../packages/schematics/src/utils/angular/dependencies.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AA2BH,4DAYC;AAED,kEAUC;AAED,4DAoBC;AAtED,2CAAuC;AAEvC,MAAM,aAAa,GAAG,eAAe,CAAC;AACtC,IAAY,kBAKX;AALD,WAAY,kBAAkB;IAC5B,8CAAwB,CAAA;IACxB,6CAAuB,CAAA;IACvB,+CAAyB,CAAA;IACzB,uDAAiC,CAAA;AACnC,CAAC,EALW,kBAAkB,kCAAlB,kBAAkB,QAK7B;AASD,MAAM,mBAAmB,GAAG;IAC1B,kBAAkB,CAAC,OAAO;IAC1B,kBAAkB,CAAC,GAAG;IACtB,kBAAkB,CAAC,QAAQ;IAC3B,kBAAkB,CAAC,IAAI;CACxB,CAAC;AAEF,SAAgB,wBAAwB,CACtC,IAAU,EACV,UAA0B,EAC1B,WAAW,GAAG,aAAa;IAE3B,MAAM,IAAI,GAAG,IAAI,oBAAQ,CAAC,IAAI,EAAE,WAAW,CAAC,CAAC;IAE7C,MAAM,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,UAAU,CAAC;IACtD,MAAM,IAAI,GAAG,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;IAC1B,IAAI,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC;QACjC,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IAC7B,CAAC;AACH,CAAC;AAED,SAAgB,2BAA2B,CACzC,IAAU,EACV,IAAY,EACZ,WAAW,GAAG,aAAa;IAE3B,MAAM,IAAI,GAAG,IAAI,oBAAQ,CAAC,IAAI,EAAE,WAAW,CAAC,CAAC;IAE7C,KAAK,MAAM,OAAO,IAAI,mBAAmB,EAAE,CAAC;QAC1C,IAAI,CAAC,MAAM,CAAC,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC,CAAC;IAC/B,CAAC;AACH,CAAC;AAED,SAAgB,wBAAwB,CACtC,IAAU,EACV,IAAY,EACZ,WAAW,GAAG,aAAa;IAE3B,MAAM,IAAI,GAAG,IAAI,oBAAQ,CAAC,IAAI,EAAE,WAAW,CAAC,CAAC;IAE7C,KAAK,MAAM,OAAO,IAAI,mBAAmB,EAAE,CAAC;QAC1C,MAAM,OAAO,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC,CAAC;QAE1C,IAAI,OAAO,OAAO,KAAK,QAAQ,EAAE,CAAC;YAChC,OAAO;gBACL,IAAI,EAAE,OAAO;gBACb,IAAI,EAAE,IAAI;gBACV,OAAO;aACR,CAAC;QACJ,CAAC;IACH,CAAC;IAED,OAAO,IAAI,CAAC;AACd,CAAC"}
@@ -1,96 +1,96 @@
1
- /**
2
- * @license
3
- * Copyright Google LLC All Rights Reserved.
4
- *
5
- * Use of this source code is governed by an MIT-style license that can be
6
- * found in the LICENSE file at https://angular.dev/license
7
- */
8
- import { Rule } from '@angular-devkit/schematics';
9
- /**
10
- * An enum used to specify the type of a dependency found within a package manifest
11
- * file (`package.json`).
12
- */
13
- export declare enum DependencyType {
14
- Default = "dependencies",
15
- Dev = "devDependencies",
16
- Peer = "peerDependencies"
17
- }
18
- /**
19
- * An enum used to specify the dependency installation behavior for the {@link addDependency}
20
- * schematics rule. The installation behavior affects if and when {@link NodePackageInstallTask}
21
- * will be scheduled when using the rule.
22
- */
23
- export declare enum InstallBehavior {
24
- /**
25
- * No installation will occur as a result of the rule when specified.
26
- *
27
- * NOTE: This does not prevent other rules from scheduling a {@link NodePackageInstallTask}
28
- * which may install the dependency.
29
- */
30
- None = 0,
31
- /**
32
- * Automatically determine the need to schedule a {@link NodePackageInstallTask} based on
33
- * previous usage of the {@link addDependency} within the schematic.
34
- */
35
- Auto = 1,
36
- /**
37
- * Always schedule a {@link NodePackageInstallTask} when the rule is executed.
38
- */
39
- Always = 2
40
- }
41
- /**
42
- * An enum used to specify the existing dependency behavior for the {@link addDependency}
43
- * schematics rule. The existing behavior affects whether the named dependency will be added
44
- * to the `package.json` when the dependency is already present with a differing specifier.
45
- */
46
- export declare enum ExistingBehavior {
47
- /**
48
- * The dependency will not be added or otherwise changed if it already exists.
49
- */
50
- Skip = 0,
51
- /**
52
- * The dependency's existing specifier will be replaced with the specifier provided in the
53
- * {@link addDependency} call. A warning will also be shown during schematic execution to
54
- * notify the user of the replacement.
55
- */
56
- Replace = 1
57
- }
58
- /**
59
- * Adds a package as a dependency to a `package.json`. By default the `package.json` located
60
- * at the schematic's root will be used. The `manifestPath` option can be used to explicitly specify
61
- * a `package.json` in different location. The type of the dependency can also be specified instead
62
- * of the default of the `dependencies` section by using the `type` option for either `devDependencies`
63
- * or `peerDependencies`.
64
- *
65
- * When using this rule, {@link NodePackageInstallTask} does not need to be included directly by
66
- * a schematic. A package manager install task will be automatically scheduled as needed.
67
- *
68
- * @param name The name of the package to add.
69
- * @param specifier The package specifier for the package to add. Typically a SemVer range.
70
- * @param options An optional object that can contain the `type` of the dependency
71
- * and/or a path (`packageJsonPath`) of a manifest file (`package.json`) to modify.
72
- * @returns A Schematics {@link Rule}
73
- */
74
- export declare function addDependency(name: string, specifier: string, options?: {
75
- /**
76
- * The type of the dependency determines the section of the `package.json` to which the
77
- * dependency will be added. Defaults to {@link DependencyType.Default} (`dependencies`).
78
- */
79
- type?: DependencyType;
80
- /**
81
- * The path of the package manifest file (`package.json`) that will be modified.
82
- * Defaults to `/package.json`.
83
- */
84
- packageJsonPath?: string;
85
- /**
86
- * The dependency installation behavior to use to determine whether a
87
- * {@link NodePackageInstallTask} should be scheduled after adding the dependency.
88
- * Defaults to {@link InstallBehavior.Auto}.
89
- */
90
- install?: InstallBehavior;
91
- /**
92
- * The behavior to use when the dependency already exists within the `package.json`.
93
- * Defaults to {@link ExistingBehavior.Replace}.
94
- */
95
- existing?: ExistingBehavior;
96
- }): Rule;
1
+ /**
2
+ * @license
3
+ * Copyright Google LLC All Rights Reserved.
4
+ *
5
+ * Use of this source code is governed by an MIT-style license that can be
6
+ * found in the LICENSE file at https://angular.dev/license
7
+ */
8
+ import { Rule } from '@angular-devkit/schematics';
9
+ /**
10
+ * An enum used to specify the type of a dependency found within a package manifest
11
+ * file (`package.json`).
12
+ */
13
+ export declare enum DependencyType {
14
+ Default = "dependencies",
15
+ Dev = "devDependencies",
16
+ Peer = "peerDependencies"
17
+ }
18
+ /**
19
+ * An enum used to specify the dependency installation behavior for the {@link addDependency}
20
+ * schematics rule. The installation behavior affects if and when {@link NodePackageInstallTask}
21
+ * will be scheduled when using the rule.
22
+ */
23
+ export declare enum InstallBehavior {
24
+ /**
25
+ * No installation will occur as a result of the rule when specified.
26
+ *
27
+ * NOTE: This does not prevent other rules from scheduling a {@link NodePackageInstallTask}
28
+ * which may install the dependency.
29
+ */
30
+ None = 0,
31
+ /**
32
+ * Automatically determine the need to schedule a {@link NodePackageInstallTask} based on
33
+ * previous usage of the {@link addDependency} within the schematic.
34
+ */
35
+ Auto = 1,
36
+ /**
37
+ * Always schedule a {@link NodePackageInstallTask} when the rule is executed.
38
+ */
39
+ Always = 2
40
+ }
41
+ /**
42
+ * An enum used to specify the existing dependency behavior for the {@link addDependency}
43
+ * schematics rule. The existing behavior affects whether the named dependency will be added
44
+ * to the `package.json` when the dependency is already present with a differing specifier.
45
+ */
46
+ export declare enum ExistingBehavior {
47
+ /**
48
+ * The dependency will not be added or otherwise changed if it already exists.
49
+ */
50
+ Skip = 0,
51
+ /**
52
+ * The dependency's existing specifier will be replaced with the specifier provided in the
53
+ * {@link addDependency} call. A warning will also be shown during schematic execution to
54
+ * notify the user of the replacement.
55
+ */
56
+ Replace = 1
57
+ }
58
+ /**
59
+ * Adds a package as a dependency to a `package.json`. By default the `package.json` located
60
+ * at the schematic's root will be used. The `manifestPath` option can be used to explicitly specify
61
+ * a `package.json` in different location. The type of the dependency can also be specified instead
62
+ * of the default of the `dependencies` section by using the `type` option for either `devDependencies`
63
+ * or `peerDependencies`.
64
+ *
65
+ * When using this rule, {@link NodePackageInstallTask} does not need to be included directly by
66
+ * a schematic. A package manager install task will be automatically scheduled as needed.
67
+ *
68
+ * @param name The name of the package to add.
69
+ * @param specifier The package specifier for the package to add. Typically a SemVer range.
70
+ * @param options An optional object that can contain the `type` of the dependency
71
+ * and/or a path (`packageJsonPath`) of a manifest file (`package.json`) to modify.
72
+ * @returns A Schematics {@link Rule}
73
+ */
74
+ export declare function addDependency(name: string, specifier: string, options?: {
75
+ /**
76
+ * The type of the dependency determines the section of the `package.json` to which the
77
+ * dependency will be added. Defaults to {@link DependencyType.Default} (`dependencies`).
78
+ */
79
+ type?: DependencyType;
80
+ /**
81
+ * The path of the package manifest file (`package.json`) that will be modified.
82
+ * Defaults to `/package.json`.
83
+ */
84
+ packageJsonPath?: string;
85
+ /**
86
+ * The dependency installation behavior to use to determine whether a
87
+ * {@link NodePackageInstallTask} should be scheduled after adding the dependency.
88
+ * Defaults to {@link InstallBehavior.Auto}.
89
+ */
90
+ install?: InstallBehavior;
91
+ /**
92
+ * The behavior to use when the dependency already exists within the `package.json`.
93
+ * Defaults to {@link ExistingBehavior.Replace}.
94
+ */
95
+ existing?: ExistingBehavior;
96
+ }): Rule;
@@ -1,123 +1,124 @@
1
- "use strict";
2
- /**
3
- * @license
4
- * Copyright Google LLC All Rights Reserved.
5
- *
6
- * Use of this source code is governed by an MIT-style license that can be
7
- * found in the LICENSE file at https://angular.dev/license
8
- */
9
- Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.addDependency = exports.ExistingBehavior = exports.InstallBehavior = exports.DependencyType = void 0;
11
- const tasks_1 = require("@angular-devkit/schematics/tasks");
12
- const path = require("node:path");
13
- const installTasks = new WeakMap();
14
- /**
15
- * An enum used to specify the type of a dependency found within a package manifest
16
- * file (`package.json`).
17
- */
18
- var DependencyType;
19
- (function (DependencyType) {
20
- DependencyType["Default"] = "dependencies";
21
- DependencyType["Dev"] = "devDependencies";
22
- DependencyType["Peer"] = "peerDependencies";
23
- })(DependencyType = exports.DependencyType || (exports.DependencyType = {}));
24
- /**
25
- * An enum used to specify the dependency installation behavior for the {@link addDependency}
26
- * schematics rule. The installation behavior affects if and when {@link NodePackageInstallTask}
27
- * will be scheduled when using the rule.
28
- */
29
- var InstallBehavior;
30
- (function (InstallBehavior) {
31
- /**
32
- * No installation will occur as a result of the rule when specified.
33
- *
34
- * NOTE: This does not prevent other rules from scheduling a {@link NodePackageInstallTask}
35
- * which may install the dependency.
36
- */
37
- InstallBehavior[InstallBehavior["None"] = 0] = "None";
38
- /**
39
- * Automatically determine the need to schedule a {@link NodePackageInstallTask} based on
40
- * previous usage of the {@link addDependency} within the schematic.
41
- */
42
- InstallBehavior[InstallBehavior["Auto"] = 1] = "Auto";
43
- /**
44
- * Always schedule a {@link NodePackageInstallTask} when the rule is executed.
45
- */
46
- InstallBehavior[InstallBehavior["Always"] = 2] = "Always";
47
- })(InstallBehavior = exports.InstallBehavior || (exports.InstallBehavior = {}));
48
- /**
49
- * An enum used to specify the existing dependency behavior for the {@link addDependency}
50
- * schematics rule. The existing behavior affects whether the named dependency will be added
51
- * to the `package.json` when the dependency is already present with a differing specifier.
52
- */
53
- var ExistingBehavior;
54
- (function (ExistingBehavior) {
55
- /**
56
- * The dependency will not be added or otherwise changed if it already exists.
57
- */
58
- ExistingBehavior[ExistingBehavior["Skip"] = 0] = "Skip";
59
- /**
60
- * The dependency's existing specifier will be replaced with the specifier provided in the
61
- * {@link addDependency} call. A warning will also be shown during schematic execution to
62
- * notify the user of the replacement.
63
- */
64
- ExistingBehavior[ExistingBehavior["Replace"] = 1] = "Replace";
65
- })(ExistingBehavior = exports.ExistingBehavior || (exports.ExistingBehavior = {}));
66
- /**
67
- * Adds a package as a dependency to a `package.json`. By default the `package.json` located
68
- * at the schematic's root will be used. The `manifestPath` option can be used to explicitly specify
69
- * a `package.json` in different location. The type of the dependency can also be specified instead
70
- * of the default of the `dependencies` section by using the `type` option for either `devDependencies`
71
- * or `peerDependencies`.
72
- *
73
- * When using this rule, {@link NodePackageInstallTask} does not need to be included directly by
74
- * a schematic. A package manager install task will be automatically scheduled as needed.
75
- *
76
- * @param name The name of the package to add.
77
- * @param specifier The package specifier for the package to add. Typically a SemVer range.
78
- * @param options An optional object that can contain the `type` of the dependency
79
- * and/or a path (`packageJsonPath`) of a manifest file (`package.json`) to modify.
80
- * @returns A Schematics {@link Rule}
81
- */
82
- function addDependency(name, specifier, options = {}) {
83
- const { type = DependencyType.Default, packageJsonPath = '/package.json', install = InstallBehavior.Auto, existing = ExistingBehavior.Replace, } = options;
84
- return (tree, context) => {
85
- const manifest = tree.readJson(packageJsonPath);
86
- const dependencySection = manifest[type];
87
- if (!dependencySection) {
88
- // Section is not present. The dependency can be added to a new object literal for the section.
89
- manifest[type] = { [name]: specifier };
90
- }
91
- else {
92
- const existingSpecifier = dependencySection[name];
93
- if (existingSpecifier === specifier) {
94
- // Already present with same specifier
95
- return;
96
- }
97
- if (existingSpecifier) {
98
- // Already present but different specifier
99
- if (existing === ExistingBehavior.Skip) {
100
- return;
101
- }
102
- // ExistingBehavior.Replace is the only other behavior currently
103
- context.logger.warn(`Package dependency "${name}" already exists with a different specifier. ` +
104
- `"${existingSpecifier}" will be replaced with "${specifier}".`);
105
- }
106
- // Add new dependency in alphabetical order
107
- const entries = Object.entries(dependencySection);
108
- entries.push([name, specifier]);
109
- entries.sort((a, b) => a[0].localeCompare(b[0]));
110
- manifest[type] = Object.fromEntries(entries);
111
- }
112
- tree.overwrite(packageJsonPath, JSON.stringify(manifest, null, 2));
113
- const installPaths = installTasks.get(context) ?? new Set();
114
- if (install === InstallBehavior.Always ||
115
- (install === InstallBehavior.Auto && !installPaths.has(packageJsonPath))) {
116
- context.addTask(new tasks_1.NodePackageInstallTask({ workingDirectory: path.dirname(packageJsonPath) }));
117
- installPaths.add(packageJsonPath);
118
- installTasks.set(context, installPaths);
119
- }
120
- };
121
- }
122
- exports.addDependency = addDependency;
1
+ "use strict";
2
+ /**
3
+ * @license
4
+ * Copyright Google LLC All Rights Reserved.
5
+ *
6
+ * Use of this source code is governed by an MIT-style license that can be
7
+ * found in the LICENSE file at https://angular.dev/license
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.ExistingBehavior = exports.InstallBehavior = exports.DependencyType = void 0;
11
+ exports.addDependency = addDependency;
12
+ const tslib_1 = require("tslib");
13
+ const tasks_1 = require("@angular-devkit/schematics/tasks");
14
+ const path = tslib_1.__importStar(require("node:path"));
15
+ const installTasks = new WeakMap();
16
+ /**
17
+ * An enum used to specify the type of a dependency found within a package manifest
18
+ * file (`package.json`).
19
+ */
20
+ var DependencyType;
21
+ (function (DependencyType) {
22
+ DependencyType["Default"] = "dependencies";
23
+ DependencyType["Dev"] = "devDependencies";
24
+ DependencyType["Peer"] = "peerDependencies";
25
+ })(DependencyType || (exports.DependencyType = DependencyType = {}));
26
+ /**
27
+ * An enum used to specify the dependency installation behavior for the {@link addDependency}
28
+ * schematics rule. The installation behavior affects if and when {@link NodePackageInstallTask}
29
+ * will be scheduled when using the rule.
30
+ */
31
+ var InstallBehavior;
32
+ (function (InstallBehavior) {
33
+ /**
34
+ * No installation will occur as a result of the rule when specified.
35
+ *
36
+ * NOTE: This does not prevent other rules from scheduling a {@link NodePackageInstallTask}
37
+ * which may install the dependency.
38
+ */
39
+ InstallBehavior[InstallBehavior["None"] = 0] = "None";
40
+ /**
41
+ * Automatically determine the need to schedule a {@link NodePackageInstallTask} based on
42
+ * previous usage of the {@link addDependency} within the schematic.
43
+ */
44
+ InstallBehavior[InstallBehavior["Auto"] = 1] = "Auto";
45
+ /**
46
+ * Always schedule a {@link NodePackageInstallTask} when the rule is executed.
47
+ */
48
+ InstallBehavior[InstallBehavior["Always"] = 2] = "Always";
49
+ })(InstallBehavior || (exports.InstallBehavior = InstallBehavior = {}));
50
+ /**
51
+ * An enum used to specify the existing dependency behavior for the {@link addDependency}
52
+ * schematics rule. The existing behavior affects whether the named dependency will be added
53
+ * to the `package.json` when the dependency is already present with a differing specifier.
54
+ */
55
+ var ExistingBehavior;
56
+ (function (ExistingBehavior) {
57
+ /**
58
+ * The dependency will not be added or otherwise changed if it already exists.
59
+ */
60
+ ExistingBehavior[ExistingBehavior["Skip"] = 0] = "Skip";
61
+ /**
62
+ * The dependency's existing specifier will be replaced with the specifier provided in the
63
+ * {@link addDependency} call. A warning will also be shown during schematic execution to
64
+ * notify the user of the replacement.
65
+ */
66
+ ExistingBehavior[ExistingBehavior["Replace"] = 1] = "Replace";
67
+ })(ExistingBehavior || (exports.ExistingBehavior = ExistingBehavior = {}));
68
+ /**
69
+ * Adds a package as a dependency to a `package.json`. By default the `package.json` located
70
+ * at the schematic's root will be used. The `manifestPath` option can be used to explicitly specify
71
+ * a `package.json` in different location. The type of the dependency can also be specified instead
72
+ * of the default of the `dependencies` section by using the `type` option for either `devDependencies`
73
+ * or `peerDependencies`.
74
+ *
75
+ * When using this rule, {@link NodePackageInstallTask} does not need to be included directly by
76
+ * a schematic. A package manager install task will be automatically scheduled as needed.
77
+ *
78
+ * @param name The name of the package to add.
79
+ * @param specifier The package specifier for the package to add. Typically a SemVer range.
80
+ * @param options An optional object that can contain the `type` of the dependency
81
+ * and/or a path (`packageJsonPath`) of a manifest file (`package.json`) to modify.
82
+ * @returns A Schematics {@link Rule}
83
+ */
84
+ function addDependency(name, specifier, options = {}) {
85
+ const { type = DependencyType.Default, packageJsonPath = '/package.json', install = InstallBehavior.Auto, existing = ExistingBehavior.Replace, } = options;
86
+ return (tree, context) => {
87
+ const manifest = tree.readJson(packageJsonPath);
88
+ const dependencySection = manifest[type];
89
+ if (!dependencySection) {
90
+ // Section is not present. The dependency can be added to a new object literal for the section.
91
+ manifest[type] = { [name]: specifier };
92
+ }
93
+ else {
94
+ const existingSpecifier = dependencySection[name];
95
+ if (existingSpecifier === specifier) {
96
+ // Already present with same specifier
97
+ return;
98
+ }
99
+ if (existingSpecifier) {
100
+ // Already present but different specifier
101
+ if (existing === ExistingBehavior.Skip) {
102
+ return;
103
+ }
104
+ // ExistingBehavior.Replace is the only other behavior currently
105
+ context.logger.warn(`Package dependency "${name}" already exists with a different specifier. ` +
106
+ `"${existingSpecifier}" will be replaced with "${specifier}".`);
107
+ }
108
+ // Add new dependency in alphabetical order
109
+ const entries = Object.entries(dependencySection);
110
+ entries.push([name, specifier]);
111
+ entries.sort((a, b) => a[0].localeCompare(b[0]));
112
+ manifest[type] = Object.fromEntries(entries);
113
+ }
114
+ tree.overwrite(packageJsonPath, JSON.stringify(manifest, null, 2));
115
+ const installPaths = installTasks.get(context) ?? new Set();
116
+ if (install === InstallBehavior.Always ||
117
+ (install === InstallBehavior.Auto && !installPaths.has(packageJsonPath))) {
118
+ context.addTask(new tasks_1.NodePackageInstallTask({ workingDirectory: path.dirname(packageJsonPath) }));
119
+ installPaths.add(packageJsonPath);
120
+ installTasks.set(context, installPaths);
121
+ }
122
+ };
123
+ }
123
124
  //# sourceMappingURL=dependency.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"dependency.js","sourceRoot":"","sources":["../../../../../packages/schematics/src/utils/angular/dependency.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAGH,4DAA0E;AAC1E,kCAAkC;AAElC,MA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AAY,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC;YAClC,YAAY,CAAC,GAAG,CAAC,OAAO,EAAE,YAAY,CAAC,CAAC;SACzC;IACH,CAAC,CAAC;AACJ,CAAC;AAvFD,sCAuFC"}
1
+ {"version":3,"file":"dependency.js","sourceRoot":"","sources":["../../../../../packages/schematics/src/utils/angular/dependency.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAqFH,sCAuFC;;AAzKD,4DAA0E;AAC1E,wDAAkC;AAElC,MAAM,YAAY,GAAG,IAAI,OAAO,EAAiC,CAAC;AAQlE;;;GAGG;AACH,IAAY,cAIX;AAJD,WAAY,cAAc;IACxB,0CAAwB,CAAA;IACxB,yCAAuB,CAAA;IACvB,2CAAyB,CAAA;AAC3B,CAAC,EAJW,cAAc,8BAAd,cAAc,QAIzB;AAED;;;;GAIG;AACH,IAAY,eAmBX;AAnBD,WAAY,eAAe;IACzB;;;;;OAKG;IACH,qDAAI,CAAA;IAEJ;;;OAGG;IACH,qDAAI,CAAA;IAEJ;;OAEG;IACH,yDAAM,CAAA;AACR,CAAC,EAnBW,eAAe,+BAAf,eAAe,QAmB1B;AAED;;;;GAIG;AACH,IAAY,gBAYX;AAZD,WAAY,gBAAgB;IAC1B;;OAEG;IACH,uDAAI,CAAA;IAEJ;;;;OAIG;IACH,6DAAO,CAAA;AACT,CAAC,EAZW,gBAAgB,gCAAhB,gBAAgB,QAY3B;AAED;;;;;;;;;;;;;;;GAeG;AACH,SAAgB,aAAa,CAC3B,IAAY,EACZ,SAAiB,EACjB,UAyBI,EAAE;IAEN,MAAM,EACJ,IAAI,GAAG,cAAc,CAAC,OAAO,EAC7B,eAAe,GAAG,eAAe,EACjC,OAAO,GAAG,eAAe,CAAC,IAAI,EAC9B,QAAQ,GAAG,gBAAgB,CAAC,OAAO,GACpC,GAAG,OAAO,CAAC;IAEZ,OAAO,CAAC,IAAI,EAAE,OAAO,EAAE,EAAE;QACvB,MAAM,QAAQ,GAAG,IAAI,C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CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,IAAI,GAAG,EAAU,CAAC;QACpE,IACE,OAAO,KAAK,eAAe,CAAC,MAAM;YAClC,CAAC,OAAO,KAAK,eAAe,CAAC,IAAI,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC,EACxE,CAAC;YACD,OAAO,CAAC,OAAO,CACb,IAAI,8BAAsB,CAAC,EAAE,gBAAgB,EAAE,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC,EAAE,CAAC,CAChF,CAAC;YACF,YAAY,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC;YAClC,YAAY,CAAC,GAAG,CAAC,OAAO,EAAE,YAAY,CAAC,CAAC;QAC1C,CAAC;IACH,CAAC,CAAC;AACJ,CAAC"}
@@ -1,8 +1,8 @@
1
- /**
2
- * @license
3
- * Copyright Google LLC All Rights Reserved.
4
- *
5
- * Use of this source code is governed by an MIT-style license that can be
6
- * found in the LICENSE file at https://angular.dev/license
7
- */
8
- export declare function getEOL(content: string): string;
1
+ /**
2
+ * @license
3
+ * Copyright Google LLC All Rights Reserved.
4
+ *
5
+ * Use of this source code is governed by an MIT-style license that can be
6
+ * found in the LICENSE file at https://angular.dev/license
7
+ */
8
+ export declare function getEOL(content: string): string;