@angular/cli 22.2.0 → 22.3.0-next.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 (377) hide show
  1. package/bin/ng.js +7 -10
  2. package/bin/version.js +98 -0
  3. package/index.d.ts +19 -0
  4. package/lib/chunk-5AASRQKS.js +85 -0
  5. package/lib/chunk-A2VIYA2E.js +165 -0
  6. package/lib/chunk-CAZUOCTC.js +225 -0
  7. package/lib/chunk-DHWVZMLH.js +206 -0
  8. package/lib/chunk-FZ5GFCWU.js +483 -0
  9. package/lib/chunk-G7TRU43D.js +42 -0
  10. package/lib/chunk-GHUUJYOY.js +40 -0
  11. package/lib/chunk-JBLF2TH3.js +267 -0
  12. package/lib/chunk-Q67GOPL7.js +380 -0
  13. package/lib/chunk-SN4KY4Z3.js +24 -0
  14. package/lib/chunk-XFL2J3CJ.js +24 -0
  15. package/lib/chunk-XG3HVNIL.js +59 -0
  16. package/lib/chunk-YM7ILCS5.js +2573 -0
  17. package/lib/cli/index.js +353 -105
  18. package/lib/cli-4CMZ6KMR.js +48 -0
  19. package/lib/cli-4Q7DGTBA.js +33 -0
  20. package/lib/cli-6AHY7ADW.js +96 -0
  21. package/lib/cli-A5UAJDO6.js +135 -0
  22. package/lib/cli-ACLGUIBI.js +2531 -0
  23. package/lib/cli-BQRFWIMG.js +35 -0
  24. package/lib/cli-CWICUPZW.js +42 -0
  25. package/lib/cli-DWQUM3M2.js +29 -0
  26. package/lib/cli-L4TM4JH3.js +88 -0
  27. package/lib/cli-LYBZEMDR.js +96 -0
  28. package/lib/cli-PDCEX7HQ.js +605 -0
  29. package/lib/cli-PJVTDBQM.js +51 -0
  30. package/lib/cli-PRIRL3WP.js +185 -0
  31. package/lib/cli-PU5VH7JB.js +189 -0
  32. package/lib/cli-QUH44NUB.js +68 -0
  33. package/lib/cli-VVITNTBC.js +50 -0
  34. package/lib/cli-XM4L4PP4.js +1651 -0
  35. package/lib/cli-Y2ECUR33.js +33 -0
  36. package/lib/cli-YDSMJOSO.js +182 -0
  37. package/lib/color-SJPGXZVA.js +8 -0
  38. package/lib/config/schema.json +210 -6
  39. package/lib/config-QXK7SSVG.js +22 -0
  40. package/lib/init.js +91 -180
  41. package/package.json +20 -15
  42. package/lib/cli/index.d.ts +0 -11
  43. package/lib/cli/index.js.map +0 -1
  44. package/lib/config/workspace-schema.d.ts +0 -1025
  45. package/lib/config/workspace-schema.js +0 -131
  46. package/lib/config/workspace-schema.js.map +0 -1
  47. package/lib/init.d.ts +0 -8
  48. package/lib/init.js.map +0 -1
  49. package/src/analytics/analytics-collector.d.ts +0 -35
  50. package/src/analytics/analytics-collector.js +0 -195
  51. package/src/analytics/analytics-collector.js.map +0 -1
  52. package/src/analytics/analytics-parameters.d.ts +0 -101
  53. package/src/analytics/analytics-parameters.js +0 -107
  54. package/src/analytics/analytics-parameters.js.map +0 -1
  55. package/src/analytics/analytics.d.ts +0 -27
  56. package/src/analytics/analytics.js +0 -183
  57. package/src/analytics/analytics.js.map +0 -1
  58. package/src/command-builder/architect-base-command-module.d.ts +0 -30
  59. package/src/command-builder/architect-base-command-module.js +0 -244
  60. package/src/command-builder/architect-base-command-module.js.map +0 -1
  61. package/src/command-builder/architect-command-module.d.ts +0 -28
  62. package/src/command-builder/architect-command-module.js +0 -218
  63. package/src/command-builder/architect-command-module.js.map +0 -1
  64. package/src/command-builder/command-module.d.ts +0 -73
  65. package/src/command-builder/command-module.js +0 -260
  66. package/src/command-builder/command-module.js.map +0 -1
  67. package/src/command-builder/command-runner.d.ts +0 -9
  68. package/src/command-builder/command-runner.js +0 -202
  69. package/src/command-builder/command-runner.js.map +0 -1
  70. package/src/command-builder/definitions.d.ts +0 -41
  71. package/src/command-builder/definitions.js +0 -20
  72. package/src/command-builder/definitions.js.map +0 -1
  73. package/src/command-builder/schematics-command-module.d.ts +0 -41
  74. package/src/command-builder/schematics-command-module.js +0 -408
  75. package/src/command-builder/schematics-command-module.js.map +0 -1
  76. package/src/command-builder/utilities/command.d.ts +0 -13
  77. package/src/command-builder/utilities/command.js +0 -39
  78. package/src/command-builder/utilities/command.js.map +0 -1
  79. package/src/command-builder/utilities/json-help.d.ts +0 -37
  80. package/src/command-builder/utilities/json-help.js +0 -92
  81. package/src/command-builder/utilities/json-help.js.map +0 -1
  82. package/src/command-builder/utilities/json-schema.d.ts +0 -64
  83. package/src/command-builder/utilities/json-schema.js +0 -349
  84. package/src/command-builder/utilities/json-schema.js.map +0 -1
  85. package/src/command-builder/utilities/normalize-options-middleware.d.ts +0 -18
  86. package/src/command-builder/utilities/normalize-options-middleware.js +0 -37
  87. package/src/command-builder/utilities/normalize-options-middleware.js.map +0 -1
  88. package/src/command-builder/utilities/schematic-engine-host.d.ts +0 -15
  89. package/src/command-builder/utilities/schematic-engine-host.js +0 -179
  90. package/src/command-builder/utilities/schematic-engine-host.js.map +0 -1
  91. package/src/command-builder/utilities/schematic-workflow.d.ts +0 -14
  92. package/src/command-builder/utilities/schematic-workflow.js +0 -70
  93. package/src/command-builder/utilities/schematic-workflow.js.map +0 -1
  94. package/src/commands/add/cli.d.ts +0 -41
  95. package/src/commands/add/cli.js +0 -705
  96. package/src/commands/add/cli.js.map +0 -1
  97. package/src/commands/add/long-description.md +0 -7
  98. package/src/commands/analytics/cli.d.ts +0 -16
  99. package/src/commands/analytics/cli.js +0 -34
  100. package/src/commands/analytics/cli.js.map +0 -1
  101. package/src/commands/analytics/info/cli.d.ts +0 -16
  102. package/src/commands/analytics/info/cli.js +0 -25
  103. package/src/commands/analytics/info/cli.js.map +0 -1
  104. package/src/commands/analytics/long-description.md +0 -20
  105. package/src/commands/analytics/settings/cli.d.ts +0 -35
  106. package/src/commands/analytics/settings/cli.js +0 -54
  107. package/src/commands/analytics/settings/cli.js.map +0 -1
  108. package/src/commands/build/cli.d.ts +0 -16
  109. package/src/commands/build/cli.js +0 -21
  110. package/src/commands/build/cli.js.map +0 -1
  111. package/src/commands/build/long-description.md +0 -18
  112. package/src/commands/cache/clean/cli.d.ts +0 -17
  113. package/src/commands/cache/clean/cli.js +0 -32
  114. package/src/commands/cache/clean/cli.js.map +0 -1
  115. package/src/commands/cache/cli.d.ts +0 -17
  116. package/src/commands/cache/cli.js +0 -36
  117. package/src/commands/cache/cli.js.map +0 -1
  118. package/src/commands/cache/info/cli.d.ts +0 -20
  119. package/src/commands/cache/info/cli.js +0 -139
  120. package/src/commands/cache/info/cli.js.map +0 -1
  121. package/src/commands/cache/long-description.md +0 -53
  122. package/src/commands/cache/settings/cli.d.ts +0 -27
  123. package/src/commands/cache/settings/cli.js +0 -41
  124. package/src/commands/cache/settings/cli.js.map +0 -1
  125. package/src/commands/cache/utilities.d.ts +0 -11
  126. package/src/commands/cache/utilities.js +0 -85
  127. package/src/commands/cache/utilities.js.map +0 -1
  128. package/src/commands/command-config.d.ts +0 -17
  129. package/src/commands/command-config.js +0 -116
  130. package/src/commands/command-config.js.map +0 -1
  131. package/src/commands/completion/cli.d.ts +0 -16
  132. package/src/commands/completion/cli.js +0 -61
  133. package/src/commands/completion/cli.js.map +0 -1
  134. package/src/commands/completion/long-description.md +0 -67
  135. package/src/commands/config/cli.d.ts +0 -24
  136. package/src/commands/config/cli.js +0 -150
  137. package/src/commands/config/cli.js.map +0 -1
  138. package/src/commands/config/long-description.md +0 -13
  139. package/src/commands/deploy/cli.d.ts +0 -17
  140. package/src/commands/deploy/cli.js +0 -38
  141. package/src/commands/deploy/cli.js.map +0 -1
  142. package/src/commands/deploy/long-description.md +0 -22
  143. package/src/commands/e2e/cli.d.ts +0 -18
  144. package/src/commands/e2e/cli.js +0 -42
  145. package/src/commands/e2e/cli.js.map +0 -1
  146. package/src/commands/extract-i18n/cli.d.ts +0 -17
  147. package/src/commands/extract-i18n/cli.js +0 -48
  148. package/src/commands/extract-i18n/cli.js.map +0 -1
  149. package/src/commands/generate/cli.d.ts +0 -47
  150. package/src/commands/generate/cli.js +0 -189
  151. package/src/commands/generate/cli.js.map +0 -1
  152. package/src/commands/lint/cli.d.ts +0 -17
  153. package/src/commands/lint/cli.js +0 -25
  154. package/src/commands/lint/cli.js.map +0 -1
  155. package/src/commands/lint/long-description.md +0 -20
  156. package/src/commands/make-this-awesome/cli.d.ts +0 -17
  157. package/src/commands/make-this-awesome/cli.js +0 -36
  158. package/src/commands/make-this-awesome/cli.js.map +0 -1
  159. package/src/commands/mcp/cli.d.ts +0 -21
  160. package/src/commands/mcp/cli.js +0 -74
  161. package/src/commands/mcp/cli.js.map +0 -1
  162. package/src/commands/mcp/constants.d.ts +0 -10
  163. package/src/commands/mcp/constants.js +0 -16
  164. package/src/commands/mcp/constants.js.map +0 -1
  165. package/src/commands/mcp/devserver.d.ts +0 -85
  166. package/src/commands/mcp/devserver.js +0 -109
  167. package/src/commands/mcp/devserver.js.map +0 -1
  168. package/src/commands/mcp/host.d.ts +0 -103
  169. package/src/commands/mcp/host.js +0 -270
  170. package/src/commands/mcp/host.js.map +0 -1
  171. package/src/commands/mcp/mcp-server.d.ts +0 -38
  172. package/src/commands/mcp/mcp-server.js +0 -176
  173. package/src/commands/mcp/mcp-server.js.map +0 -1
  174. package/src/commands/mcp/resources/ai-tutor.md +0 -822
  175. package/src/commands/mcp/resources/best-practices.md +0 -59
  176. package/src/commands/mcp/resources/instructions.d.ts +0 -9
  177. package/src/commands/mcp/resources/instructions.js +0 -26
  178. package/src/commands/mcp/resources/instructions.js.map +0 -1
  179. package/src/commands/mcp/shared-options.d.ts +0 -12
  180. package/src/commands/mcp/shared-options.js +0 -22
  181. package/src/commands/mcp/shared-options.js.map +0 -1
  182. package/src/commands/mcp/tools/ai-tutor.d.ts +0 -12
  183. package/src/commands/mcp/tools/ai-tutor.js +0 -59
  184. package/src/commands/mcp/tools/ai-tutor.js.map +0 -1
  185. package/src/commands/mcp/tools/best-practices.d.ts +0 -13
  186. package/src/commands/mcp/tools/best-practices.js +0 -196
  187. package/src/commands/mcp/tools/best-practices.js.map +0 -1
  188. package/src/commands/mcp/tools/devserver/devserver-start.d.ts +0 -32
  189. package/src/commands/mcp/tools/devserver/devserver-start.js +0 -110
  190. package/src/commands/mcp/tools/devserver/devserver-start.js.map +0 -1
  191. package/src/commands/mcp/tools/devserver/devserver-stop.d.ts +0 -31
  192. package/src/commands/mcp/tools/devserver/devserver-stop.js +0 -69
  193. package/src/commands/mcp/tools/devserver/devserver-stop.js.map +0 -1
  194. package/src/commands/mcp/tools/devserver/devserver-wait-for-build.d.ts +0 -41
  195. package/src/commands/mcp/tools/devserver/devserver-wait-for-build.js +0 -105
  196. package/src/commands/mcp/tools/devserver/devserver-wait-for-build.js.map +0 -1
  197. package/src/commands/mcp/tools/doc-search.d.ts +0 -21
  198. package/src/commands/mcp/tools/doc-search.js +0 -307
  199. package/src/commands/mcp/tools/doc-search.js.map +0 -1
  200. package/src/commands/mcp/tools/onpush-zoneless-migration/analyze-for-unsupported-zone-uses.d.ts +0 -17
  201. package/src/commands/mcp/tools/onpush-zoneless-migration/analyze-for-unsupported-zone-uses.js +0 -62
  202. package/src/commands/mcp/tools/onpush-zoneless-migration/analyze-for-unsupported-zone-uses.js.map +0 -1
  203. package/src/commands/mcp/tools/onpush-zoneless-migration/migrate-single-file.d.ts +0 -12
  204. package/src/commands/mcp/tools/onpush-zoneless-migration/migrate-single-file.js +0 -70
  205. package/src/commands/mcp/tools/onpush-zoneless-migration/migrate-single-file.js.map +0 -1
  206. package/src/commands/mcp/tools/onpush-zoneless-migration/migrate-test-file.d.ts +0 -12
  207. package/src/commands/mcp/tools/onpush-zoneless-migration/migrate-test-file.js +0 -60
  208. package/src/commands/mcp/tools/onpush-zoneless-migration/migrate-test-file.js.map +0 -1
  209. package/src/commands/mcp/tools/onpush-zoneless-migration/prompts.d.ts +0 -15
  210. package/src/commands/mcp/tools/onpush-zoneless-migration/prompts.js +0 -238
  211. package/src/commands/mcp/tools/onpush-zoneless-migration/prompts.js.map +0 -1
  212. package/src/commands/mcp/tools/onpush-zoneless-migration/send-debug-message.d.ts +0 -9
  213. package/src/commands/mcp/tools/onpush-zoneless-migration/send-debug-message.js +0 -14
  214. package/src/commands/mcp/tools/onpush-zoneless-migration/send-debug-message.js.map +0 -1
  215. package/src/commands/mcp/tools/onpush-zoneless-migration/ts-utils.d.ts +0 -36
  216. package/src/commands/mcp/tools/onpush-zoneless-migration/ts-utils.js +0 -135
  217. package/src/commands/mcp/tools/onpush-zoneless-migration/ts-utils.js.map +0 -1
  218. package/src/commands/mcp/tools/onpush-zoneless-migration/types.d.ts +0 -13
  219. package/src/commands/mcp/tools/onpush-zoneless-migration/types.js +0 -10
  220. package/src/commands/mcp/tools/onpush-zoneless-migration/types.js.map +0 -1
  221. package/src/commands/mcp/tools/onpush-zoneless-migration/zoneless-migration.d.ts +0 -16
  222. package/src/commands/mcp/tools/onpush-zoneless-migration/zoneless-migration.js +0 -211
  223. package/src/commands/mcp/tools/onpush-zoneless-migration/zoneless-migration.js.map +0 -1
  224. package/src/commands/mcp/tools/projects.d.ts +0 -48
  225. package/src/commands/mcp/tools/projects.js +0 -541
  226. package/src/commands/mcp/tools/projects.js.map +0 -1
  227. package/src/commands/mcp/tools/run-target/build-target-strategy.d.ts +0 -14
  228. package/src/commands/mcp/tools/run-target/build-target-strategy.js +0 -53
  229. package/src/commands/mcp/tools/run-target/build-target-strategy.js.map +0 -1
  230. package/src/commands/mcp/tools/run-target/generic-target-strategy.d.ts +0 -14
  231. package/src/commands/mcp/tools/run-target/generic-target-strategy.js +0 -63
  232. package/src/commands/mcp/tools/run-target/generic-target-strategy.js.map +0 -1
  233. package/src/commands/mcp/tools/run-target/options-serializer.d.ts +0 -13
  234. package/src/commands/mcp/tools/run-target/options-serializer.js +0 -41
  235. package/src/commands/mcp/tools/run-target/options-serializer.js.map +0 -1
  236. package/src/commands/mcp/tools/run-target/run-target.d.ts +0 -34
  237. package/src/commands/mcp/tools/run-target/run-target.js +0 -69
  238. package/src/commands/mcp/tools/run-target/run-target.js.map +0 -1
  239. package/src/commands/mcp/tools/run-target/strategy.d.ts +0 -15
  240. package/src/commands/mcp/tools/run-target/strategy.js +0 -10
  241. package/src/commands/mcp/tools/run-target/strategy.js.map +0 -1
  242. package/src/commands/mcp/tools/run-target/types.d.ts +0 -39
  243. package/src/commands/mcp/tools/run-target/types.js +0 -41
  244. package/src/commands/mcp/tools/run-target/types.js.map +0 -1
  245. package/src/commands/mcp/tools/run-target/unit-test-strategy.d.ts +0 -14
  246. package/src/commands/mcp/tools/run-target/unit-test-strategy.js +0 -56
  247. package/src/commands/mcp/tools/run-target/unit-test-strategy.js.map +0 -1
  248. package/src/commands/mcp/tools/tool-registry.d.ts +0 -40
  249. package/src/commands/mcp/tools/tool-registry.js +0 -40
  250. package/src/commands/mcp/tools/tool-registry.js.map +0 -1
  251. package/src/commands/mcp/utils.d.ts +0 -25
  252. package/src/commands/mcp/utils.js +0 -44
  253. package/src/commands/mcp/utils.js.map +0 -1
  254. package/src/commands/mcp/workspace-utils.d.ts +0 -55
  255. package/src/commands/mcp/workspace-utils.js +0 -181
  256. package/src/commands/mcp/workspace-utils.js.map +0 -1
  257. package/src/commands/new/cli.d.ts +0 -27
  258. package/src/commands/new/cli.js +0 -76
  259. package/src/commands/new/cli.js.map +0 -1
  260. package/src/commands/new/long-description.md +0 -15
  261. package/src/commands/run/cli.d.ts +0 -25
  262. package/src/commands/run/cli.js +0 -89
  263. package/src/commands/run/cli.js.map +0 -1
  264. package/src/commands/run/long-description.md +0 -10
  265. package/src/commands/serve/cli.d.ts +0 -16
  266. package/src/commands/serve/cli.js +0 -20
  267. package/src/commands/serve/cli.js.map +0 -1
  268. package/src/commands/test/cli.d.ts +0 -16
  269. package/src/commands/test/cli.js +0 -21
  270. package/src/commands/test/cli.js.map +0 -1
  271. package/src/commands/test/long-description.md +0 -2
  272. package/src/commands/update/cli.d.ts +0 -50
  273. package/src/commands/update/cli.js +0 -586
  274. package/src/commands/update/cli.js.map +0 -1
  275. package/src/commands/update/long-description.md +0 -22
  276. package/src/commands/update/update-resolver.d.ts +0 -75
  277. package/src/commands/update/update-resolver.js +0 -918
  278. package/src/commands/update/update-resolver.js.map +0 -1
  279. package/src/commands/update/utilities/cli-version.d.ts +0 -48
  280. package/src/commands/update/utilities/cli-version.js +0 -196
  281. package/src/commands/update/utilities/cli-version.js.map +0 -1
  282. package/src/commands/update/utilities/constants.d.ts +0 -12
  283. package/src/commands/update/utilities/constants.js +0 -16
  284. package/src/commands/update/utilities/constants.js.map +0 -1
  285. package/src/commands/update/utilities/git.d.ts +0 -36
  286. package/src/commands/update/utilities/git.js +0 -148
  287. package/src/commands/update/utilities/git.js.map +0 -1
  288. package/src/commands/update/utilities/migration.d.ts +0 -32
  289. package/src/commands/update/utilities/migration.js +0 -271
  290. package/src/commands/update/utilities/migration.js.map +0 -1
  291. package/src/commands/version/cli.d.ts +0 -36
  292. package/src/commands/version/cli.js +0 -117
  293. package/src/commands/version/cli.js.map +0 -1
  294. package/src/commands/version/version-info.d.ts +0 -46
  295. package/src/commands/version/version-info.js +0 -101
  296. package/src/commands/version/version-info.js.map +0 -1
  297. package/src/package-managers/discovery.d.ts +0 -23
  298. package/src/package-managers/discovery.js +0 -104
  299. package/src/package-managers/discovery.js.map +0 -1
  300. package/src/package-managers/error.d.ts +0 -43
  301. package/src/package-managers/error.js +0 -41
  302. package/src/package-managers/error.js.map +0 -1
  303. package/src/package-managers/factory.d.ts +0 -30
  304. package/src/package-managers/factory.js +0 -137
  305. package/src/package-managers/factory.js.map +0 -1
  306. package/src/package-managers/host.d.ts +0 -86
  307. package/src/package-managers/host.js +0 -91
  308. package/src/package-managers/host.js.map +0 -1
  309. package/src/package-managers/index.d.ts +0 -13
  310. package/src/package-managers/index.js +0 -17
  311. package/src/package-managers/index.js.map +0 -1
  312. package/src/package-managers/logger.d.ts +0 -27
  313. package/src/package-managers/logger.js +0 -10
  314. package/src/package-managers/logger.js.map +0 -1
  315. package/src/package-managers/package-manager-descriptor.d.ts +0 -269
  316. package/src/package-managers/package-manager-descriptor.js +0 -210
  317. package/src/package-managers/package-manager-descriptor.js.map +0 -1
  318. package/src/package-managers/package-manager.d.ts +0 -200
  319. package/src/package-managers/package-manager.js +0 -720
  320. package/src/package-managers/package-manager.js.map +0 -1
  321. package/src/package-managers/package-metadata.d.ts +0 -91
  322. package/src/package-managers/package-metadata.js +0 -10
  323. package/src/package-managers/package-metadata.js.map +0 -1
  324. package/src/package-managers/package-tree.d.ts +0 -23
  325. package/src/package-managers/package-tree.js +0 -10
  326. package/src/package-managers/package-tree.js.map +0 -1
  327. package/src/package-managers/parsers.d.ts +0 -167
  328. package/src/package-managers/parsers.js +0 -674
  329. package/src/package-managers/parsers.js.map +0 -1
  330. package/src/utilities/color.d.ts +0 -23
  331. package/src/utilities/color.js +0 -41
  332. package/src/utilities/color.js.map +0 -1
  333. package/src/utilities/completion.d.ts +0 -30
  334. package/src/utilities/completion.js +0 -270
  335. package/src/utilities/completion.js.map +0 -1
  336. package/src/utilities/config.d.ts +0 -38
  337. package/src/utilities/config.js +0 -368
  338. package/src/utilities/config.js.map +0 -1
  339. package/src/utilities/environment-options.d.ts +0 -25
  340. package/src/utilities/environment-options.js +0 -60
  341. package/src/utilities/environment-options.js.map +0 -1
  342. package/src/utilities/eol.d.ts +0 -20
  343. package/src/utilities/eol.js +0 -35
  344. package/src/utilities/eol.js.map +0 -1
  345. package/src/utilities/error.d.ts +0 -18
  346. package/src/utilities/error.js +0 -41
  347. package/src/utilities/error.js.map +0 -1
  348. package/src/utilities/find-up.d.ts +0 -21
  349. package/src/utilities/find-up.js +0 -67
  350. package/src/utilities/find-up.js.map +0 -1
  351. package/src/utilities/json-file.d.ts +0 -24
  352. package/src/utilities/json-file.js +0 -179
  353. package/src/utilities/json-file.js.map +0 -1
  354. package/src/utilities/log-file.d.ts +0 -13
  355. package/src/utilities/log-file.js +0 -28
  356. package/src/utilities/log-file.js.map +0 -1
  357. package/src/utilities/memoize.d.ts +0 -15
  358. package/src/utilities/memoize.js +0 -64
  359. package/src/utilities/memoize.js.map +0 -1
  360. package/src/utilities/node-version.d.ts +0 -21
  361. package/src/utilities/node-version.js +0 -65
  362. package/src/utilities/node-version.js.map +0 -1
  363. package/src/utilities/prettier.d.ts +0 -19
  364. package/src/utilities/prettier.js +0 -105
  365. package/src/utilities/prettier.js.map +0 -1
  366. package/src/utilities/project.d.ts +0 -8
  367. package/src/utilities/project.js +0 -81
  368. package/src/utilities/project.js.map +0 -1
  369. package/src/utilities/prompt.d.ts +0 -17
  370. package/src/utilities/prompt.js +0 -90
  371. package/src/utilities/prompt.js.map +0 -1
  372. package/src/utilities/tty.d.ts +0 -16
  373. package/src/utilities/tty.js +0 -23
  374. package/src/utilities/tty.js.map +0 -1
  375. package/src/utilities/version.d.ts +0 -16
  376. package/src/utilities/version.js +0 -26
  377. package/src/utilities/version.js.map +0 -1
@@ -0,0 +1,380 @@
1
+ import {
2
+ SchematicEngineHost,
3
+ formatFiles,
4
+ subscribeToWorkflow
5
+ } from "./chunk-JBLF2TH3.js";
6
+ import {
7
+ CommandModule,
8
+ CommandScope,
9
+ EventCustomDimension,
10
+ isPackageNameSafeForAnalytics,
11
+ isTTY,
12
+ memoize,
13
+ parseJsonSchemaToOptions
14
+ } from "./chunk-YM7ILCS5.js";
15
+ import {
16
+ assertIsError,
17
+ getProjectByCwd,
18
+ getSchematicDefaults
19
+ } from "./chunk-FZ5GFCWU.js";
20
+
21
+ // packages/angular/cli/src/command-builder/schematics-command-module.js
22
+ import { normalize as devkitNormalize, schema } from "@angular-devkit/core";
23
+ import { UnsuccessfulWorkflowExecution, formats } from "@angular-devkit/schematics";
24
+ import { NodeWorkflow } from "@angular-devkit/schematics/tools";
25
+ import { relative } from "node:path";
26
+ var __runInitializers = function(thisArg, initializers, value) {
27
+ var useValue = arguments.length > 2;
28
+ for (var i = 0; i < initializers.length; i++) {
29
+ value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
30
+ }
31
+ return useValue ? value : void 0;
32
+ };
33
+ var __esDecorate = function(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
34
+ function accept(f) {
35
+ if (f !== void 0 && typeof f !== "function")
36
+ throw new TypeError("Function expected");
37
+ return f;
38
+ }
39
+ var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
40
+ var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
41
+ var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
42
+ var _, done = false;
43
+ for (var i = decorators.length - 1; i >= 0; i--) {
44
+ var context = {};
45
+ for (var p in contextIn)
46
+ context[p] = p === "access" ? {} : contextIn[p];
47
+ for (var p in contextIn.access)
48
+ context.access[p] = contextIn.access[p];
49
+ context.addInitializer = function(f) {
50
+ if (done)
51
+ throw new TypeError("Cannot add initializers after decoration has completed");
52
+ extraInitializers.push(accept(f || null));
53
+ };
54
+ var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
55
+ if (kind === "accessor") {
56
+ if (result === void 0)
57
+ continue;
58
+ if (result === null || typeof result !== "object")
59
+ throw new TypeError("Object expected");
60
+ if (_ = accept(result.get))
61
+ descriptor.get = _;
62
+ if (_ = accept(result.set))
63
+ descriptor.set = _;
64
+ if (_ = accept(result.init))
65
+ initializers.unshift(_);
66
+ } else if (_ = accept(result)) {
67
+ if (kind === "field")
68
+ initializers.unshift(_);
69
+ else
70
+ descriptor[key] = _;
71
+ }
72
+ }
73
+ if (target)
74
+ Object.defineProperty(target, contextIn.name, descriptor);
75
+ done = true;
76
+ };
77
+ var DEFAULT_SCHEMATICS_COLLECTION = "@schematics/angular";
78
+ var SchematicsCommandModule = (() => {
79
+ let _classSuper = CommandModule;
80
+ let _instanceExtraInitializers = [];
81
+ let _getOrCreateWorkflowForBuilder_decorators;
82
+ let _getOrCreateWorkflowForExecution_decorators;
83
+ let _getSchematicCollections_decorators;
84
+ return class SchematicsCommandModule extends _classSuper {
85
+ static {
86
+ const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
87
+ _getOrCreateWorkflowForBuilder_decorators = [memoize];
88
+ _getOrCreateWorkflowForExecution_decorators = [memoize];
89
+ _getSchematicCollections_decorators = [memoize];
90
+ __esDecorate(this, null, _getOrCreateWorkflowForBuilder_decorators, { kind: "method", name: "getOrCreateWorkflowForBuilder", static: false, private: false, access: { has: (obj) => "getOrCreateWorkflowForBuilder" in obj, get: (obj) => obj.getOrCreateWorkflowForBuilder }, metadata: _metadata }, null, _instanceExtraInitializers);
91
+ __esDecorate(this, null, _getOrCreateWorkflowForExecution_decorators, { kind: "method", name: "getOrCreateWorkflowForExecution", static: false, private: false, access: { has: (obj) => "getOrCreateWorkflowForExecution" in obj, get: (obj) => obj.getOrCreateWorkflowForExecution }, metadata: _metadata }, null, _instanceExtraInitializers);
92
+ __esDecorate(this, null, _getSchematicCollections_decorators, { kind: "method", name: "getSchematicCollections", static: false, private: false, access: { has: (obj) => "getSchematicCollections" in obj, get: (obj) => obj.getSchematicCollections }, metadata: _metadata }, null, _instanceExtraInitializers);
93
+ if (_metadata)
94
+ Object.defineProperty(this, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
95
+ }
96
+ scope = (__runInitializers(this, _instanceExtraInitializers), CommandScope.In);
97
+ allowPrivateSchematics = false;
98
+ async builder(argv) {
99
+ return argv.option("interactive", {
100
+ describe: "Enable interactive input prompts.",
101
+ type: "boolean",
102
+ default: true
103
+ }).option("dry-run", {
104
+ describe: "Run through and reports activity without writing out results.",
105
+ type: "boolean",
106
+ alias: ["d"],
107
+ default: false
108
+ }).option("defaults", {
109
+ describe: "Disable interactive input prompts for options with a default.",
110
+ type: "boolean",
111
+ default: false
112
+ }).option("force", {
113
+ describe: "Force overwriting of existing files.",
114
+ type: "boolean",
115
+ default: false
116
+ }).strict();
117
+ }
118
+ /** Get schematic schema options.*/
119
+ async getSchematicOptions(collection, schematicName, workflow) {
120
+ const schematic = collection.createSchematic(schematicName, true);
121
+ const { schemaJson } = schematic.description;
122
+ if (!schemaJson) {
123
+ return [];
124
+ }
125
+ return parseJsonSchemaToOptions(workflow.registry, schemaJson);
126
+ }
127
+ getOrCreateWorkflowForBuilder(collectionName) {
128
+ return new NodeWorkflow(this.context.root, {
129
+ resolvePaths: this.getResolvePaths(collectionName),
130
+ engineHostCreator: (options) => new SchematicEngineHost(options.resolvePaths)
131
+ });
132
+ }
133
+ async getOrCreateWorkflowForExecution(collectionName, options) {
134
+ const { logger, root, packageManager } = this.context;
135
+ const { force, dryRun, packageRegistry } = options;
136
+ const workflow = new NodeWorkflow(root, {
137
+ force,
138
+ dryRun,
139
+ packageManager: packageManager.name,
140
+ // A schema registry is required to allow customizing addUndefinedDefaults
141
+ registry: new schema.CoreSchemaRegistry(formats.standardFormats),
142
+ packageRegistry,
143
+ resolvePaths: this.getResolvePaths(collectionName),
144
+ schemaValidation: true,
145
+ optionTransforms: [
146
+ // Add configuration file defaults
147
+ async (schematic, current) => {
148
+ const projectName = typeof current?.project === "string" ? current.project : this.getProjectName();
149
+ return {
150
+ ...await getSchematicDefaults(schematic.collection.name, schematic.name, projectName),
151
+ ...current
152
+ };
153
+ }
154
+ ],
155
+ engineHostCreator: (options2) => new SchematicEngineHost(options2.resolvePaths)
156
+ });
157
+ workflow.registry.addPostTransform(schema.transforms.addUndefinedDefaults);
158
+ workflow.registry.useXDeprecatedProvider((msg) => logger.warn(msg));
159
+ workflow.registry.addSmartDefaultProvider("projectName", () => this.getProjectName());
160
+ const workingDir = devkitNormalize(relative(this.context.root, process.cwd()));
161
+ workflow.registry.addSmartDefaultProvider("workingDirectory", () => workingDir === "" ? void 0 : workingDir);
162
+ workflow.engineHost.registerOptionsTransform(async (schematic, options2) => {
163
+ const { collection: { name: collectionName2 }, name: schematicName } = schematic;
164
+ const analytics = isPackageNameSafeForAnalytics(collectionName2) ? await this.getAnalytics() : void 0;
165
+ analytics?.reportSchematicRunEvent({
166
+ [EventCustomDimension.SchematicCollectionName]: collectionName2,
167
+ [EventCustomDimension.SchematicName]: schematicName,
168
+ ...this.getAnalyticsParameters(options2)
169
+ });
170
+ return options2;
171
+ });
172
+ if (options.interactive !== false && isTTY()) {
173
+ workflow.registry.usePromptProvider(async (definitions) => {
174
+ let prompts;
175
+ const answers = {};
176
+ for (const definition of definitions) {
177
+ if (options.defaults && definition.default !== void 0) {
178
+ continue;
179
+ }
180
+ prompts ??= await import("@inquirer/prompts");
181
+ switch (definition.type) {
182
+ case "confirmation":
183
+ answers[definition.id] = await prompts.confirm({
184
+ message: definition.message,
185
+ default: definition.default
186
+ });
187
+ break;
188
+ case "list":
189
+ if (!definition.items?.length) {
190
+ continue;
191
+ }
192
+ answers[definition.id] = await (definition.multiselect ? prompts.checkbox : prompts.select)({
193
+ message: definition.message,
194
+ validate: (values) => {
195
+ if (!definition.validator) {
196
+ return true;
197
+ }
198
+ return definition.validator(Object.values(values).map(({ value }) => value));
199
+ },
200
+ default: definition.multiselect ? void 0 : definition.default,
201
+ choices: definition.items?.map((item) => typeof item == "string" ? {
202
+ name: item,
203
+ value: item,
204
+ checked: definition.multiselect && Array.isArray(definition.default) ? definition.default?.includes(item) : item === definition.default
205
+ } : {
206
+ ...item,
207
+ name: item.label,
208
+ value: item.value,
209
+ checked: definition.multiselect && Array.isArray(definition.default) ? (
210
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
211
+ definition.default?.includes(item.value)
212
+ ) : item.value === definition.default
213
+ })
214
+ });
215
+ break;
216
+ case "input": {
217
+ let finalValue;
218
+ answers[definition.id] = await prompts.input({
219
+ message: definition.message,
220
+ default: definition.default,
221
+ async validate(value) {
222
+ if (definition.validator === void 0) {
223
+ return true;
224
+ }
225
+ let lastValidation = false;
226
+ for (const type of definition.propertyTypes) {
227
+ let potential;
228
+ switch (type) {
229
+ case "string":
230
+ potential = String(value);
231
+ break;
232
+ case "integer":
233
+ case "number":
234
+ potential = Number(value);
235
+ break;
236
+ default:
237
+ potential = value;
238
+ break;
239
+ }
240
+ lastValidation = await definition.validator(potential);
241
+ if (lastValidation === true) {
242
+ finalValue = potential;
243
+ return true;
244
+ }
245
+ }
246
+ return lastValidation;
247
+ }
248
+ });
249
+ if (finalValue !== void 0) {
250
+ answers[definition.id] = finalValue;
251
+ }
252
+ break;
253
+ }
254
+ }
255
+ }
256
+ return answers;
257
+ });
258
+ }
259
+ return workflow;
260
+ }
261
+ async getSchematicCollections() {
262
+ const getSchematicCollections = (configSection) => {
263
+ if (!configSection) {
264
+ return void 0;
265
+ }
266
+ const { schematicCollections } = configSection;
267
+ if (Array.isArray(schematicCollections)) {
268
+ return new Set(schematicCollections);
269
+ }
270
+ return void 0;
271
+ };
272
+ const { workspace, globalConfiguration } = this.context;
273
+ if (workspace) {
274
+ const project = getProjectByCwd(workspace);
275
+ if (project) {
276
+ const value2 = getSchematicCollections(workspace.getProjectCli(project));
277
+ if (value2) {
278
+ return value2;
279
+ }
280
+ }
281
+ }
282
+ const value = getSchematicCollections(workspace?.getCli()) ?? getSchematicCollections(globalConfiguration.getCli());
283
+ if (value) {
284
+ return value;
285
+ }
286
+ return /* @__PURE__ */ new Set([DEFAULT_SCHEMATICS_COLLECTION]);
287
+ }
288
+ parseSchematicInfo(schematic) {
289
+ if (schematic?.includes(":")) {
290
+ const [collectionName, schematicName] = schematic.split(":", 2);
291
+ return [collectionName, schematicName];
292
+ }
293
+ return [void 0, schematic];
294
+ }
295
+ async runSchematic(options) {
296
+ const { logger } = this.context;
297
+ const { schematicOptions, executionOptions, collectionName, schematicName } = options;
298
+ const workflow = await this.getOrCreateWorkflowForExecution(collectionName, executionOptions);
299
+ if (!schematicName) {
300
+ throw new Error("schematicName cannot be undefined.");
301
+ }
302
+ const { unsubscribe, files } = subscribeToWorkflow(workflow, logger);
303
+ try {
304
+ await workflow.execute({
305
+ collection: collectionName,
306
+ schematic: schematicName,
307
+ options: schematicOptions,
308
+ logger,
309
+ allowPrivate: this.allowPrivateSchematics
310
+ }).toPromise();
311
+ if (!files.size) {
312
+ logger.info("Nothing to be done.");
313
+ }
314
+ if (executionOptions.dryRun) {
315
+ logger.warn(`
316
+ NOTE: The "--dry-run" option means no changes were made.`);
317
+ return 0;
318
+ }
319
+ if (files.size) {
320
+ try {
321
+ await formatFiles(this.context.root, files);
322
+ } catch (error) {
323
+ assertIsError(error);
324
+ logger.warn(`WARNING: Formatting of files failed with the following error: ${error.message}`);
325
+ }
326
+ }
327
+ return 0;
328
+ } catch (err) {
329
+ if (err instanceof UnsuccessfulWorkflowExecution) {
330
+ logger.fatal("The Schematic workflow failed. See above.");
331
+ } else {
332
+ assertIsError(err);
333
+ logger.fatal(err.message);
334
+ }
335
+ return 1;
336
+ } finally {
337
+ unsubscribe();
338
+ }
339
+ }
340
+ getProjectName() {
341
+ const { workspace } = this.context;
342
+ if (!workspace) {
343
+ return void 0;
344
+ }
345
+ const projectName = getProjectByCwd(workspace);
346
+ if (projectName) {
347
+ return projectName;
348
+ }
349
+ return void 0;
350
+ }
351
+ getResolvePaths(collectionName) {
352
+ const { workspace, root } = this.context;
353
+ if (collectionName[0] === ".") {
354
+ return [root];
355
+ }
356
+ return workspace ? (
357
+ // Workspace
358
+ collectionName === DEFAULT_SCHEMATICS_COLLECTION ? (
359
+ // Favor import.meta.dirname for @schematics/angular to use the build-in version
360
+ [import.meta.dirname, process.cwd(), root]
361
+ ) : [process.cwd(), root, import.meta.dirname]
362
+ ) : (
363
+ // Global
364
+ [import.meta.dirname, process.cwd()]
365
+ );
366
+ }
367
+ };
368
+ })();
369
+
370
+ export {
371
+ DEFAULT_SCHEMATICS_COLLECTION,
372
+ SchematicsCommandModule
373
+ };
374
+ /**
375
+ * @license
376
+ * Copyright Google LLC All Rights Reserved.
377
+ *
378
+ * Use of this source code is governed by an MIT-style license that can be
379
+ * found in the LICENSE file at https://angular.dev/license
380
+ */
@@ -0,0 +1,24 @@
1
+ // packages/angular/cli/src/utilities/log-file.js
2
+ import { appendFileSync, mkdtempSync, realpathSync } from "node:fs";
3
+ import { tmpdir } from "node:os";
4
+ import { normalize } from "node:path";
5
+ var logPath;
6
+ function writeErrorToLogFile(error) {
7
+ if (!logPath) {
8
+ const tempDirectory = mkdtempSync(realpathSync(tmpdir()) + "/ng-");
9
+ logPath = normalize(tempDirectory + "/angular-errors.log");
10
+ }
11
+ appendFileSync(logPath, "[error] " + (error.stack || error) + "\n\n");
12
+ return logPath;
13
+ }
14
+
15
+ export {
16
+ writeErrorToLogFile
17
+ };
18
+ /**
19
+ * @license
20
+ * Copyright Google LLC All Rights Reserved.
21
+ *
22
+ * Use of this source code is governed by an MIT-style license that can be
23
+ * found in the LICENSE file at https://angular.dev/license
24
+ */
@@ -0,0 +1,24 @@
1
+ // packages/angular/cli/src/utilities/node-version.js
2
+ import { SUPPORTED_NODE_VERSIONS, supportedNodeVersions } from "#version";
3
+ import { SUPPORTED_NODE_VERSIONS as SUPPORTED_NODE_VERSIONS2, supportedNodeVersions as supportedNodeVersions2, isNodeVersionSupported, isNodeVersionRunnable } from "#version";
4
+ function isNodeVersionMinSupported(currentVersion = process.versions.node, supportedVersions = supportedNodeVersions) {
5
+ if (SUPPORTED_NODE_VERSIONS.charAt(0) === "0" && currentVersion === process.versions.node) {
6
+ return true;
7
+ }
8
+ const [processMajor, processMinor, processPatch] = currentVersion.split(".", 3).map((part) => Number(part));
9
+ const [major, minor, patch] = supportedVersions[0].split(".", 3).map((part) => Number(part));
10
+ return processMajor > major || processMajor === major && processMinor > minor || processMajor === major && processMinor === minor && processPatch >= patch;
11
+ }
12
+
13
+ export {
14
+ isNodeVersionMinSupported,
15
+ supportedNodeVersions2 as supportedNodeVersions,
16
+ isNodeVersionSupported
17
+ };
18
+ /**
19
+ * @license
20
+ * Copyright Google LLC All Rights Reserved.
21
+ *
22
+ * Use of this source code is governed by an MIT-style license that can be
23
+ * found in the LICENSE file at https://angular.dev/license
24
+ */
@@ -0,0 +1,59 @@
1
+ // packages/angular/cli/src/utilities/environment-options.js
2
+ var TRUTHY_VALUES = /* @__PURE__ */ new Set(["1", "true"]);
3
+ var FALSY_VALUES = /* @__PURE__ */ new Set(["0", "false"]);
4
+ function isPresent(variable) {
5
+ return typeof variable === "string" && variable !== "";
6
+ }
7
+ function parseTristate(variable) {
8
+ if (!isPresent(variable)) {
9
+ return void 0;
10
+ }
11
+ const value = variable.toLowerCase();
12
+ if (TRUTHY_VALUES.has(value)) {
13
+ return true;
14
+ }
15
+ if (FALSY_VALUES.has(value)) {
16
+ return false;
17
+ }
18
+ return void 0;
19
+ }
20
+ var analyticsDisabled = parseTristate(process.env["NG_CLI_ANALYTICS"]) === false;
21
+ var isCI = parseTristate(process.env["CI"]) === true;
22
+ var disableVersionCheck = parseTristate(process.env["NG_DISABLE_VERSION_CHECK"]) === true;
23
+ var ngDebug = parseTristate(process.env["NG_DEBUG"]) === true;
24
+ var forceAutocomplete = parseTristate(process.env["NG_FORCE_AUTOCOMPLETE"]);
25
+ var forceTty = parseTristate(process.env["NG_FORCE_TTY"]);
26
+
27
+ // packages/angular/cli/src/utilities/version.js
28
+ import { VERSION as versionString } from "#version";
29
+ var Version = class {
30
+ full;
31
+ major;
32
+ minor;
33
+ patch;
34
+ constructor(full) {
35
+ this.full = full;
36
+ const [major, minor, patch] = full.split("-", 1)[0].split(".", 3);
37
+ this.major = major;
38
+ this.minor = minor;
39
+ this.patch = patch;
40
+ }
41
+ };
42
+ var VERSION = new Version(versionString);
43
+
44
+ export {
45
+ analyticsDisabled,
46
+ isCI,
47
+ disableVersionCheck,
48
+ ngDebug,
49
+ forceAutocomplete,
50
+ forceTty,
51
+ VERSION
52
+ };
53
+ /**
54
+ * @license
55
+ * Copyright Google LLC All Rights Reserved.
56
+ *
57
+ * Use of this source code is governed by an MIT-style license that can be
58
+ * found in the LICENSE file at https://angular.dev/license
59
+ */