@nx/angular 19.5.0-canary.20240711-2c4c2ae → 19.5.0-canary.20240712-0b0db78

Sign up to get free protection for your applications and to get access to all the features.
Files changed (294) hide show
  1. package/migrations.json +70 -0
  2. package/package.json +9 -9
  3. package/plugins/component-testing.js +1 -2
  4. package/src/builders/dev-server/dev-server.impl.js +1 -2
  5. package/src/builders/dev-server/lib/normalize-options.js +1 -2
  6. package/src/builders/dev-server/lib/validate-options.js +5 -2
  7. package/src/builders/dev-server/schema.d.ts +1 -0
  8. package/src/builders/dev-server/schema.json +11 -0
  9. package/src/builders/module-federation-dev-ssr/module-federation-dev-ssr.impl.js +1 -2
  10. package/src/builders/utilities/buildable-libs.js +1 -2
  11. package/src/builders/utilities/module-federation.js +4 -5
  12. package/src/builders/utilities/webpack.js +3 -4
  13. package/src/builders/webpack-browser/webpack-browser.impl.js +1 -2
  14. package/src/builders/webpack-server/webpack-server.impl.js +1 -2
  15. package/src/executors/application/application.impl.js +1 -1
  16. package/src/executors/application/utils/validate-options.js +1 -2
  17. package/src/executors/browser-esbuild/browser-esbuild.impl.js +1 -1
  18. package/src/executors/delegate-build/delegate-build.impl.js +1 -2
  19. package/src/executors/extract-i18n/extract-i18n.impl.js +1 -1
  20. package/src/executors/module-federation-dev-server/lib/build-static-remotes.js +1 -2
  21. package/src/executors/module-federation-dev-server/lib/normalize-options.js +1 -2
  22. package/src/executors/module-federation-dev-server/lib/parse-static-remotes-config.js +1 -2
  23. package/src/executors/module-federation-dev-server/lib/start-dev-remotes.js +1 -2
  24. package/src/executors/module-federation-dev-server/lib/start-static-remotes-file-server.js +1 -2
  25. package/src/executors/module-federation-dev-server/module-federation-dev-server.impl.js +1 -2
  26. package/src/executors/ng-packagr-lite/ng-packagr-adjustments/ng-packagr.js +1 -2
  27. package/src/executors/ng-packagr-lite/ng-packagr-adjustments/pre-v17/ngc/compile-source-files.js +1 -2
  28. package/src/executors/package/ng-packagr-adjustments/ng-packagr.js +1 -2
  29. package/src/executors/package/ng-packagr-adjustments/ngc/compile-source-files.js +1 -2
  30. package/src/executors/package/ng-packagr-adjustments/utils/ng-compiler-cli.js +1 -2
  31. package/src/executors/package/package.impl.js +2 -2
  32. package/src/executors/utilities/angular-version-utils.js +2 -3
  33. package/src/executors/utilities/buildable-libs.js +1 -2
  34. package/src/executors/utilities/esbuild-extensions.js +3 -4
  35. package/src/executors/utilities/module-loader.js +2 -3
  36. package/src/executors/utilities/ng-packagr/tailwindcss.js +3 -4
  37. package/src/executors/utilities/patch-builder-context.js +1 -2
  38. package/src/executors/utilities/typescript.js +1 -2
  39. package/src/generators/add-linting/add-linting.js +1 -2
  40. package/src/generators/add-linting/lib/add-angular-eslint-dependencies.js +1 -2
  41. package/src/generators/add-linting/lib/buildable-project.js +1 -2
  42. package/src/generators/add-linting/lib/create-eslint-configuration.d.ts +24 -24
  43. package/src/generators/add-linting/lib/create-eslint-configuration.js +2 -2
  44. package/src/generators/application/application.js +2 -3
  45. package/src/generators/application/files/base/tsconfig.json__tpl__ +2 -2
  46. package/src/generators/application/files/ng-module/src/app/app.component.spec.ts__tpl__ +4 -3
  47. package/src/generators/application/files/standalone-components/src/app/app.component.spec.ts__tpl__ +4 -3
  48. package/src/generators/application/lib/add-e2e.js +1 -2
  49. package/src/generators/application/lib/add-linting.js +1 -2
  50. package/src/generators/application/lib/add-proxy-config.js +1 -2
  51. package/src/generators/application/lib/add-unit-test-runner.js +1 -2
  52. package/src/generators/application/lib/create-files.js +8 -5
  53. package/src/generators/application/lib/create-project.js +1 -2
  54. package/src/generators/application/lib/enable-strict-type-checking.js +1 -2
  55. package/src/generators/application/lib/normalize-options.js +1 -2
  56. package/src/generators/application/lib/set-app-strict-default.js +1 -2
  57. package/src/generators/application/lib/set-generator-defaults.js +1 -2
  58. package/src/generators/application/lib/update-editor-tsconfig.js +1 -2
  59. package/src/generators/component/component.js +2 -3
  60. package/src/generators/component/lib/component.js +1 -2
  61. package/src/generators/component/lib/module.js +1 -2
  62. package/src/generators/component/lib/normalize-options.js +1 -2
  63. package/src/generators/component/lib/set-generator-defaults.js +1 -2
  64. package/src/generators/component-cypress-spec/component-cypress-spec.js +1 -2
  65. package/src/generators/component-cypress-spec/lib/get-args-default-value.js +1 -2
  66. package/src/generators/component-cypress-spec/lib/get-component-selector.js +1 -2
  67. package/src/generators/component-story/component-story.js +1 -2
  68. package/src/generators/component-test/component-test.js +1 -2
  69. package/src/generators/convert-to-application-executor/convert-to-application-executor.js +1 -2
  70. package/src/generators/convert-to-with-mf/convert-to-with-mf.js +1 -2
  71. package/src/generators/convert-to-with-mf/lib/check-name-matches.js +1 -2
  72. package/src/generators/convert-to-with-mf/lib/check-shared-npm-packages.js +1 -2
  73. package/src/generators/convert-to-with-mf/lib/get-webpack-config-path.js +1 -2
  74. package/src/generators/convert-to-with-mf/lib/is-host-remote-config.js +3 -4
  75. package/src/generators/convert-to-with-mf/lib/parse-ast-webpack-config.js +1 -2
  76. package/src/generators/convert-to-with-mf/lib/write-new-webpack-config.js +1 -2
  77. package/src/generators/cypress-component-configuration/cypress-component-configuration.js +2 -3
  78. package/src/generators/directive/directive.js +1 -2
  79. package/src/generators/directive/lib/normalize-options.js +1 -2
  80. package/src/generators/federate-module/federate-module.js +1 -2
  81. package/src/generators/federate-module/lib/add-file-to-remote-tsconfig.js +1 -2
  82. package/src/generators/federate-module/lib/add-path-to-exposes.js +1 -2
  83. package/src/generators/federate-module/lib/add-path-to-ts-config.js +1 -2
  84. package/src/generators/federate-module/lib/add-remote.js +1 -2
  85. package/src/generators/federate-module/lib/check-remote-exists.js +1 -2
  86. package/src/generators/host/host.js +2 -3
  87. package/src/generators/host/lib/update-ssr-setup.js +1 -2
  88. package/src/generators/init/init.js +1 -2
  89. package/src/generators/library/files/base/tsconfig.json__tpl__ +2 -2
  90. package/src/generators/library/lib/add-children.js +1 -2
  91. package/src/generators/library/lib/add-load-children.js +1 -2
  92. package/src/generators/library/lib/add-module.js +1 -2
  93. package/src/generators/library/lib/add-project.js +1 -2
  94. package/src/generators/library/lib/add-standalone-component.js +1 -2
  95. package/src/generators/library/lib/create-files.js +3 -2
  96. package/src/generators/library/lib/enable-strict-type-checking.js +2 -3
  97. package/src/generators/library/lib/normalize-options.js +1 -2
  98. package/src/generators/library/lib/set-generator-defaults.js +1 -2
  99. package/src/generators/library/lib/update-lib-package-npm-scope.js +1 -2
  100. package/src/generators/library/lib/update-tsconfig.js +1 -2
  101. package/src/generators/library/library.js +2 -3
  102. package/src/generators/library-secondary-entry-point/lib/add-files.js +1 -2
  103. package/src/generators/library-secondary-entry-point/lib/add-path-mapping.js +1 -2
  104. package/src/generators/library-secondary-entry-point/lib/normalize-options.js +1 -2
  105. package/src/generators/library-secondary-entry-point/lib/update-tsconfig-included-files.js +1 -2
  106. package/src/generators/library-secondary-entry-point/library-secondary-entry-point.js +1 -2
  107. package/src/generators/move/lib/update-module-name.js +1 -2
  108. package/src/generators/move/lib/update-ng-package.js +1 -2
  109. package/src/generators/move/lib/update-secondary-entry-points.js +1 -2
  110. package/src/generators/move/move-impl.js +1 -2
  111. package/src/generators/move/move.js +2 -3
  112. package/src/generators/ng-add/migrate-from-angular-cli.js +1 -2
  113. package/src/generators/ng-add/ng-add.js +1 -2
  114. package/src/generators/ng-add/utilities/dependencies.js +1 -2
  115. package/src/generators/ng-add/utilities/format-files-task.js +1 -2
  116. package/src/generators/ng-add/utilities/projects.js +2 -3
  117. package/src/generators/ng-add/utilities/validation-logging.js +2 -3
  118. package/src/generators/ng-add/utilities/workspace.js +13 -14
  119. package/src/generators/ngrx/lib/add-exports-barrel.js +1 -2
  120. package/src/generators/ngrx/lib/add-imports-to-module.js +1 -2
  121. package/src/generators/ngrx/lib/add-ngrx-to-package-json.js +1 -2
  122. package/src/generators/ngrx/lib/generate-files.js +1 -2
  123. package/src/generators/ngrx/lib/normalize-options.js +1 -2
  124. package/src/generators/ngrx/lib/validate-options.js +1 -2
  125. package/src/generators/ngrx/ngrx.js +1 -2
  126. package/src/generators/ngrx-feature-store/lib/add-exports-barrel.js +1 -2
  127. package/src/generators/ngrx-feature-store/lib/add-imports.js +1 -2
  128. package/src/generators/ngrx-feature-store/lib/add-ngrx-to-package-json.js +1 -2
  129. package/src/generators/ngrx-feature-store/lib/generate-files.js +1 -2
  130. package/src/generators/ngrx-feature-store/lib/normalize-options.js +1 -2
  131. package/src/generators/ngrx-feature-store/lib/validate-options.js +1 -2
  132. package/src/generators/ngrx-feature-store/ngrx-feature-store.js +1 -2
  133. package/src/generators/ngrx-root-store/lib/add-imports.js +1 -2
  134. package/src/generators/ngrx-root-store/lib/add-ngrx-to-package-json.js +1 -2
  135. package/src/generators/ngrx-root-store/lib/normalize-options.js +1 -2
  136. package/src/generators/ngrx-root-store/lib/validate-options.js +1 -2
  137. package/src/generators/ngrx-root-store/ngrx-root-store.js +1 -2
  138. package/src/generators/pipe/lib/normalize-options.js +1 -2
  139. package/src/generators/pipe/pipe.js +1 -2
  140. package/src/generators/remote/lib/find-next-available-port.js +1 -2
  141. package/src/generators/remote/lib/update-ssr-setup.js +1 -2
  142. package/src/generators/remote/remote.js +2 -3
  143. package/src/generators/scam/lib/convert-component-to-scam.js +1 -2
  144. package/src/generators/scam/lib/normalize-options.js +1 -2
  145. package/src/generators/scam/scam.js +1 -2
  146. package/src/generators/scam-directive/lib/convert-directive-to-scam.js +1 -2
  147. package/src/generators/scam-directive/lib/normalize-options.js +1 -2
  148. package/src/generators/scam-directive/scam-directive.js +1 -2
  149. package/src/generators/scam-pipe/lib/convert-pipe-to-scam.js +1 -2
  150. package/src/generators/scam-pipe/lib/normalize-options.js +1 -2
  151. package/src/generators/scam-pipe/scam-pipe.js +1 -2
  152. package/src/generators/scam-to-standalone/lib/convert-scam-to-standalone.js +1 -2
  153. package/src/generators/scam-to-standalone/lib/get-component-data-from-ast.js +1 -2
  154. package/src/generators/scam-to-standalone/lib/get-module-metadata-from-ast.js +1 -2
  155. package/src/generators/scam-to-standalone/lib/get-target-project.js +1 -2
  156. package/src/generators/scam-to-standalone/lib/replace-module-usages-with-component.js +1 -2
  157. package/src/generators/scam-to-standalone/lib/selector-exists-in-ast.js +1 -2
  158. package/src/generators/scam-to-standalone/lib/verify-is-inline-scam.js +1 -2
  159. package/src/generators/scam-to-standalone/lib/verify-module-is-scam.js +1 -2
  160. package/src/generators/scam-to-standalone/scam-to-standalone.js +1 -2
  161. package/src/generators/setup-mf/files/host-files/app.component.spec.ts__tmpl__ +8 -5
  162. package/src/generators/setup-mf/lib/add-cypress-workaround.js +1 -2
  163. package/src/generators/setup-mf/lib/add-remote-entry.js +1 -2
  164. package/src/generators/setup-mf/lib/add-remote-to-host.js +3 -4
  165. package/src/generators/setup-mf/lib/change-build-target.js +1 -2
  166. package/src/generators/setup-mf/lib/fix-bootstrap.js +1 -2
  167. package/src/generators/setup-mf/lib/generate-config.js +1 -2
  168. package/src/generators/setup-mf/lib/get-remotes-with-ports.js +1 -2
  169. package/src/generators/setup-mf/lib/normalize-options.js +1 -2
  170. package/src/generators/setup-mf/lib/remove-dead-code-from-remote.js +1 -2
  171. package/src/generators/setup-mf/lib/setup-host-if-dynamic.js +1 -2
  172. package/src/generators/setup-mf/lib/setup-serve-target.js +1 -2
  173. package/src/generators/setup-mf/lib/setup-tspath-for-remote.js +1 -2
  174. package/src/generators/setup-mf/lib/update-host-app-routes.d.ts +2 -2
  175. package/src/generators/setup-mf/lib/update-host-app-routes.js +5 -10
  176. package/src/generators/setup-mf/lib/update-tsconfig.js +1 -2
  177. package/src/generators/setup-mf/setup-mf.js +1 -2
  178. package/src/generators/setup-ssr/lib/add-dependencies.js +1 -2
  179. package/src/generators/setup-ssr/lib/add-hydration.js +1 -2
  180. package/src/generators/setup-ssr/lib/add-server-file.js +1 -2
  181. package/src/generators/setup-ssr/lib/generate-files.js +1 -2
  182. package/src/generators/setup-ssr/lib/generate-server-ts-config.js +2 -3
  183. package/src/generators/setup-ssr/lib/normalize-options.js +1 -2
  184. package/src/generators/setup-ssr/lib/set-router-initial-navigation.js +1 -2
  185. package/src/generators/setup-ssr/lib/update-project-config.js +2 -3
  186. package/src/generators/setup-ssr/lib/validate-options.js +1 -2
  187. package/src/generators/setup-ssr/setup-ssr.js +1 -2
  188. package/src/generators/setup-tailwind/lib/add-tailwind-config-path-to-project.js +1 -2
  189. package/src/generators/setup-tailwind/lib/add-tailwind-config.js +1 -2
  190. package/src/generators/setup-tailwind/lib/add-tailwind-required-packages.js +1 -2
  191. package/src/generators/setup-tailwind/lib/detect-tailwind-installed-version.js +1 -2
  192. package/src/generators/setup-tailwind/lib/normalize-options.js +1 -2
  193. package/src/generators/setup-tailwind/lib/update-application-styles.js +1 -2
  194. package/src/generators/setup-tailwind/setup-tailwind.js +1 -2
  195. package/src/generators/stories/lib/get-e2e-project.js +1 -2
  196. package/src/generators/stories/stories.js +1 -2
  197. package/src/generators/storybook-configuration/lib/assert-compatible-storybook-version.js +1 -2
  198. package/src/generators/storybook-configuration/lib/generate-stories.js +1 -2
  199. package/src/generators/storybook-configuration/lib/generate-storybook-configuration.js +1 -2
  200. package/src/generators/storybook-configuration/lib/validate-options.js +1 -2
  201. package/src/generators/storybook-configuration/storybook-configuration.js +1 -2
  202. package/src/generators/utils/add-jest.js +1 -2
  203. package/src/generators/utils/add-mf-env-to-inputs.js +1 -2
  204. package/src/generators/utils/dependencies.js +1 -2
  205. package/src/generators/utils/ensure-angular-dependencies.js +1 -2
  206. package/src/generators/utils/entry-point.js +1 -2
  207. package/src/generators/utils/export-scam.js +1 -2
  208. package/src/generators/utils/find-module.js +2 -3
  209. package/src/generators/utils/insert-ngmodule-import.js +2 -3
  210. package/src/generators/utils/path.js +1 -2
  211. package/src/generators/utils/project.js +1 -2
  212. package/src/generators/utils/selector.js +2 -3
  213. package/src/generators/utils/storybook-ast/component-info.js +3 -4
  214. package/src/generators/utils/storybook-ast/entry-point.js +1 -2
  215. package/src/generators/utils/storybook-ast/module-info.js +2 -3
  216. package/src/generators/utils/storybook-ast/storybook-inputs.js +4 -5
  217. package/src/generators/utils/storybook-ast/tree-utilities.js +1 -2
  218. package/src/generators/utils/testing.js +5 -6
  219. package/src/generators/utils/update-app-editor-tsconfig-excluded-files.js +1 -2
  220. package/src/generators/utils/update-project-root-tsconfig.js +2 -2
  221. package/src/generators/utils/validations.js +1 -2
  222. package/src/generators/utils/version-utils.js +6 -7
  223. package/src/generators/web-worker/lib/add-snippet.js +1 -2
  224. package/src/generators/web-worker/lib/normalize-options.js +1 -2
  225. package/src/generators/web-worker/web-worker.js +1 -2
  226. package/src/migrations/update-14-2-0/remove-show-circular-dependencies-option.js +1 -1
  227. package/src/migrations/update-14-2-0/update-angular-cli.js +1 -1
  228. package/src/migrations/update-14-2-0/update-libraries-secondary-entrypoints.js +1 -1
  229. package/src/migrations/update-14-2-0/update-ngcc-target.js +1 -1
  230. package/src/migrations/update-14-2-0/update-router-initial-navigation.js +6 -3
  231. package/src/migrations/update-14-2-0/update-tsconfig-target.js +2 -2
  232. package/src/migrations/update-14-5-0/migrate-mfe-to-mf.js +4 -5
  233. package/src/migrations/update-14-5-2/update-angular-cli.js +1 -1
  234. package/src/migrations/update-14-6-0/update-angular-cli.js +1 -1
  235. package/src/migrations/update-14-8-0/rename-webpack-server.js +1 -1
  236. package/src/migrations/update-15-0-0/add-karma-inputs.js +1 -1
  237. package/src/migrations/update-15-0-0/switch-to-jasmine-marbles.js +1 -1
  238. package/src/migrations/update-15-2-0/remove-browserlist-config.js +1 -1
  239. package/src/migrations/update-15-2-0/remove-platform-server-exports.js +1 -1
  240. package/src/migrations/update-15-2-0/update-angular-cli.js +1 -1
  241. package/src/migrations/update-15-2-0/update-karma-main-file.js +1 -1
  242. package/src/migrations/update-15-2-0/update-typescript-target.js +1 -1
  243. package/src/migrations/update-15-2-0/update-workspace-config.js +1 -1
  244. package/src/migrations/update-15-5-0/update-angular-cli.js +1 -1
  245. package/src/migrations/update-15-7-0/install-required-packages.js +1 -1
  246. package/src/migrations/update-15-8-0/update-angular-cli.js +1 -1
  247. package/src/migrations/update-15-9-0/update-file-server-executor.js +1 -1
  248. package/src/migrations/update-15-9-0/update-testing-tsconfig.js +1 -2
  249. package/src/migrations/update-16-0-0/remove-karma-defaults.js +1 -1
  250. package/src/migrations/update-16-0-0/remove-library-generator-simple-module-name-option.js +1 -1
  251. package/src/migrations/update-16-0-0/remove-protractor-defaults.js +1 -1
  252. package/src/migrations/update-16-0-0-add-nx-packages/update-16-0-0-add-nx-packages.js +1 -1
  253. package/src/migrations/update-16-1-0/extract-standalone-config-from-bootstrap.js +1 -1
  254. package/src/migrations/update-16-1-0/remove-ngcc-invocation.js +1 -1
  255. package/src/migrations/update-16-1-0/remove-render-module-platform-server-exports.js +1 -1
  256. package/src/migrations/update-16-1-0/update-angular-cli.js +1 -1
  257. package/src/migrations/update-16-1-0/update-server-executor-config.js +1 -1
  258. package/src/migrations/update-16-2-0/switch-data-persistence-operators-imports-to-ngrx-router-store.js +1 -1
  259. package/src/migrations/update-16-4-0/rename-angular-eslint-accesibility-rules.js +1 -1
  260. package/src/migrations/update-16-4-0/update-angular-cli.js +1 -1
  261. package/src/migrations/update-16-6-0/explicitly-set-projects-to-update-buildable-deps.js +1 -1
  262. package/src/migrations/update-16-7-0/update-angular-cli.js +1 -1
  263. package/src/migrations/update-17-1-0/browser-target-to-build-target.js +1 -1
  264. package/src/migrations/update-17-1-0/replace-nguniversal-builders.js +1 -1
  265. package/src/migrations/update-17-1-0/replace-nguniversal-engines.js +1 -1
  266. package/src/migrations/update-17-1-0/update-angular-cli.js +1 -1
  267. package/src/migrations/update-17-1-0/update-zone-js-deep-import.js +1 -1
  268. package/src/migrations/update-17-2-0/rename-webpack-dev-server.js +1 -1
  269. package/src/migrations/update-17-3-0/add-autoprefixer-dependency.js +1 -1
  270. package/src/migrations/update-17-3-0/add-browser-sync-dependency.js +1 -1
  271. package/src/migrations/update-17-3-0/update-angular-cli.js +1 -1
  272. package/src/migrations/update-18-0-0/add-mf-env-var-to-target-defaults.js +1 -1
  273. package/src/migrations/update-18-1-0/update-angular-cli.js +1 -1
  274. package/src/migrations/update-18-1-1/fix-target-defaults-inputs.js +1 -1
  275. package/src/migrations/update-18-2-0/update-angular-cli.js +1 -1
  276. package/src/migrations/update-19-1-0/update-angular-cli.js +1 -1
  277. package/src/migrations/update-19-2-1/add-typescript-eslint-utils.d.ts +1 -1
  278. package/src/migrations/update-19-2-1/add-typescript-eslint-utils.js +2 -2
  279. package/src/migrations/update-19-5-0/update-angular-cli.d.ts +3 -0
  280. package/src/migrations/update-19-5-0/update-angular-cli.js +23 -0
  281. package/src/migrations/utils/projects.js +1 -2
  282. package/src/utils/cli-config-utils.js +1 -2
  283. package/src/utils/get-mf-projects.js +1 -2
  284. package/src/utils/mf/utils.js +4 -4
  285. package/src/utils/mf/with-module-federation-ssr.js +1 -2
  286. package/src/utils/mf/with-module-federation.js +1 -2
  287. package/src/utils/nx-devkit/ast-utils.js +23 -24
  288. package/src/utils/nx-devkit/route-utils.js +2 -3
  289. package/src/utils/nx-devkit/testing.js +4 -5
  290. package/src/utils/targets.js +1 -2
  291. package/src/utils/version-utils.js +2 -3
  292. package/src/utils/versions.d.ts +4 -4
  293. package/src/utils/versions.js +4 -4
  294. package/tailwind.js +1 -2
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.updateNgPackage = void 0;
3
+ exports.updateNgPackage = updateNgPackage;
4
4
  const devkit_1 = require("@nx/devkit");
5
5
  const path_1 = require("path");
6
6
  function updateNgPackage(tree, schema) {
@@ -30,4 +30,3 @@ function updateNgPackage(tree, schema) {
30
30
  return json;
31
31
  });
32
32
  }
33
- exports.updateNgPackage = updateNgPackage;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.updateSecondaryEntryPoints = void 0;
3
+ exports.updateSecondaryEntryPoints = updateSecondaryEntryPoints;
4
4
  const devkit_1 = require("@nx/devkit");
5
5
  const path_1 = require("path");
6
6
  const libraryExecutors = [
@@ -31,7 +31,6 @@ function updateSecondaryEntryPoints(tree, schema) {
31
31
  updateReadme(tree, (0, path_1.dirname)(filePath), schema.oldProjectName, schema.newProjectName);
32
32
  });
33
33
  }
34
- exports.updateSecondaryEntryPoints = updateSecondaryEntryPoints;
35
34
  function updateReadme(tree, dir, oldProjectName, newProjectName) {
36
35
  const readmePath = (0, devkit_1.joinPathFragments)(dir, 'README.md');
37
36
  if (!tree.exists(readmePath)) {
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.move = void 0;
3
+ exports.move = move;
4
4
  const devkit_1 = require("@nx/devkit");
5
5
  const lib_1 = require("./lib");
6
6
  /**
@@ -18,7 +18,6 @@ async function move(tree, options) {
18
18
  (0, lib_1.updateNgPackage)(tree, options);
19
19
  (0, lib_1.updateSecondaryEntryPoints)(tree, options);
20
20
  }
21
- exports.move = move;
22
21
  async function isAngularProject(project) {
23
22
  const projectGraph = await (0, devkit_1.createProjectGraphAsync)();
24
23
  return projectGraph.dependencies[project]?.some((dependency) => dependency.target === 'npm:@angular/core');
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.angularMoveGeneratorInternal = exports.angularMoveGenerator = void 0;
3
+ exports.angularMoveGenerator = angularMoveGenerator;
4
+ exports.angularMoveGeneratorInternal = angularMoveGeneratorInternal;
4
5
  const move_1 = require("@nx/workspace/src/generators/move/move");
5
6
  async function angularMoveGenerator(tree, schema) {
6
7
  await angularMoveGeneratorInternal(tree, {
@@ -8,9 +9,7 @@ async function angularMoveGenerator(tree, schema) {
8
9
  ...schema,
9
10
  });
10
11
  }
11
- exports.angularMoveGenerator = angularMoveGenerator;
12
12
  async function angularMoveGeneratorInternal(tree, schema) {
13
13
  process.env.NX_ANGULAR_MOVE_INVOKED = 'true';
14
14
  await (0, move_1.moveGeneratorInternal)(tree, schema);
15
15
  }
16
- exports.angularMoveGeneratorInternal = angularMoveGeneratorInternal;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.migrateFromAngularCli = void 0;
3
+ exports.migrateFromAngularCli = migrateFromAngularCli;
4
4
  const devkit_1 = require("@nx/devkit");
5
5
  const migrators_1 = require("./migrators");
6
6
  const utilities_1 = require("./utilities");
@@ -59,4 +59,3 @@ async function migrateFromAngularCli(tree, options) {
59
59
  };
60
60
  }
61
61
  }
62
- exports.migrateFromAngularCli = migrateFromAngularCli;
@@ -1,9 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ngAddGenerator = void 0;
3
+ exports.ngAddGenerator = ngAddGenerator;
4
4
  const migrate_from_angular_cli_1 = require("./migrate-from-angular-cli");
5
5
  async function ngAddGenerator(tree, options) {
6
6
  return await (0, migrate_from_angular_cli_1.migrateFromAngularCli)(tree, options);
7
7
  }
8
- exports.ngAddGenerator = ngAddGenerator;
9
8
  exports.default = ngAddGenerator;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ensureAngularDevKitPeerDependenciesAreInstalled = void 0;
3
+ exports.ensureAngularDevKitPeerDependenciesAreInstalled = ensureAngularDevKitPeerDependenciesAreInstalled;
4
4
  const devkit_1 = require("@nx/devkit");
5
5
  const version_utils_1 = require("../../../utils/version-utils");
6
6
  const version_utils_2 = require("../../utils/version-utils");
@@ -25,4 +25,3 @@ function ensureAngularDevKitPeerDependenciesAreInstalled(tree) {
25
25
  }, {});
26
26
  (0, devkit_1.addDependenciesToPackageJson)(tree, {}, filteredPackages);
27
27
  }
28
- exports.ensureAngularDevKitPeerDependenciesAreInstalled = ensureAngularDevKitPeerDependenciesAreInstalled;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.formatFilesTask = void 0;
3
+ exports.formatFilesTask = formatFilesTask;
4
4
  const child_process_1 = require("nx/src/utils/child-process");
5
5
  function formatFilesTask(tree) {
6
6
  if (!tree
@@ -13,4 +13,3 @@ function formatFilesTask(tree) {
13
13
  }
14
14
  catch { }
15
15
  }
16
- exports.formatFilesTask = formatFilesTask;
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.convertToNxProject = exports.getAllProjects = void 0;
3
+ exports.getAllProjects = getAllProjects;
4
+ exports.convertToNxProject = convertToNxProject;
4
5
  const devkit_1 = require("@nx/devkit");
5
6
  const angular_json_1 = require("nx/src/adapter/angular-json");
6
7
  function getAllProjects(tree) {
@@ -23,7 +24,6 @@ function getAllProjects(tree) {
23
24
  }
24
25
  return result;
25
26
  }
26
- exports.getAllProjects = getAllProjects;
27
27
  function convertToNxProject(tree, projectName) {
28
28
  const angularJson = (0, devkit_1.readJson)(tree, 'angular.json');
29
29
  const project = (0, angular_json_1.toNewFormat)(angularJson).projects[projectName];
@@ -32,4 +32,3 @@ function convertToNxProject(tree, projectName) {
32
32
  delete angularJson.projects[projectName];
33
33
  (0, devkit_1.writeJson)(tree, 'angular.json', { ...angularJson, version: 1 });
34
34
  }
35
- exports.convertToNxProject = convertToNxProject;
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getProjectValidationResultMessage = exports.arrayToString = void 0;
3
+ exports.arrayToString = arrayToString;
4
+ exports.getProjectValidationResultMessage = getProjectValidationResultMessage;
4
5
  const chalk = require("chalk");
5
6
  function arrayToString(array) {
6
7
  if (array.length === 0) {
@@ -13,7 +14,6 @@ function arrayToString(array) {
13
14
  const rest = array.slice(0, array.length - 1);
14
15
  return `${rest.map(quote).join(', ')} and ${quote(last)}`;
15
16
  }
16
- exports.arrayToString = arrayToString;
17
17
  function getProjectValidationResultMessage(validationResult) {
18
18
  return `${chalk.bold('Validation results')}:
19
19
 
@@ -21,7 +21,6 @@ function getProjectValidationResultMessage(validationResult) {
21
21
  .map((error) => getValidationErrorText(error))
22
22
  .join('\n\n ')}`;
23
23
  }
24
- exports.getProjectValidationResultMessage = getProjectValidationResultMessage;
25
24
  function getValidationErrorText({ message, messageGroup, hint, }) {
26
25
  let lines = message
27
26
  ? [`- ${message}`, ...(hint ? [chalk.dim(chalk.italic(` ${hint}`))] : [])]
@@ -1,6 +1,18 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.deleteGitKeepFilesIfNotNeeded = exports.deleteAngularJson = exports.updateVsCodeRecommendedExtensions = exports.getWorkspaceRootFileTypesInfo = exports.createRootKarmaConfig = exports.createWorkspaceFiles = exports.cleanupEsLintPackages = exports.updateRootEsLintConfig = exports.updatePackageJson = exports.updateRootTsConfig = exports.updateWorkspaceConfigDefaults = exports.createNxJson = exports.validateWorkspace = void 0;
3
+ exports.validateWorkspace = validateWorkspace;
4
+ exports.createNxJson = createNxJson;
5
+ exports.updateWorkspaceConfigDefaults = updateWorkspaceConfigDefaults;
6
+ exports.updateRootTsConfig = updateRootTsConfig;
7
+ exports.updatePackageJson = updatePackageJson;
8
+ exports.updateRootEsLintConfig = updateRootEsLintConfig;
9
+ exports.cleanupEsLintPackages = cleanupEsLintPackages;
10
+ exports.createWorkspaceFiles = createWorkspaceFiles;
11
+ exports.createRootKarmaConfig = createRootKarmaConfig;
12
+ exports.getWorkspaceRootFileTypesInfo = getWorkspaceRootFileTypesInfo;
13
+ exports.updateVsCodeRecommendedExtensions = updateVsCodeRecommendedExtensions;
14
+ exports.deleteAngularJson = deleteAngularJson;
15
+ exports.deleteGitKeepFilesIfNotNeeded = deleteGitKeepFilesIfNotNeeded;
4
16
  const devkit_1 = require("@nx/devkit");
5
17
  const eslint_1 = require("@nx/eslint");
6
18
  const setup_root_eslint_1 = require("@nx/eslint/src/generators/lint-project/setup-root-eslint");
@@ -25,7 +37,6 @@ function validateWorkspace(tree) {
25
37
 
26
38
  - ${errors.join('\n ')}`);
27
39
  }
28
- exports.validateWorkspace = validateWorkspace;
29
40
  function createNxJson(tree, options, defaultProject) {
30
41
  const targets = getWorkspaceCommonTargets(tree);
31
42
  (0, devkit_1.writeJson)(tree, 'nx.json', {
@@ -79,7 +90,6 @@ function createNxJson(tree, options, defaultProject) {
79
90
  defaultProject,
80
91
  });
81
92
  }
82
- exports.createNxJson = createNxJson;
83
93
  function getWorkspaceCommonTargets(tree) {
84
94
  const targets = { e2e: false, lint: false, test: false };
85
95
  const projects = (0, devkit_1.getProjects)(tree);
@@ -107,7 +117,6 @@ function updateWorkspaceConfigDefaults(tree) {
107
117
  }
108
118
  (0, devkit_1.updateNxJson)(tree, nxJson);
109
119
  }
110
- exports.updateWorkspaceConfigDefaults = updateWorkspaceConfigDefaults;
111
120
  function updateRootTsConfig(tree) {
112
121
  const tsconfig = (0, devkit_1.readJson)(tree, (0, js_1.getRootTsConfigPathInTree)(tree));
113
122
  tsconfig.compilerOptions.paths ??= {};
@@ -119,7 +128,6 @@ function updateRootTsConfig(tree) {
119
128
  tree.delete('tsconfig.json');
120
129
  }
121
130
  }
122
- exports.updateRootTsConfig = updateRootTsConfig;
123
131
  function updatePackageJson(tree) {
124
132
  (0, devkit_1.updateJson)(tree, 'package.json', (packageJson) => {
125
133
  packageJson.scripts = packageJson.scripts ?? {};
@@ -146,7 +154,6 @@ function updatePackageJson(tree) {
146
154
  return packageJson;
147
155
  });
148
156
  }
149
- exports.updatePackageJson = updatePackageJson;
150
157
  async function updateRootEsLintConfig(tree, existingEsLintConfig, unitTestRunner) {
151
158
  await (0, eslint_1.lintInitGenerator)(tree, {
152
159
  addPlugin: false,
@@ -187,7 +194,6 @@ async function updateRootEsLintConfig(tree, existingEsLintConfig, unitTestRunner
187
194
  ];
188
195
  (0, devkit_1.writeJson)(tree, '.eslintrc.json', existingEsLintConfig);
189
196
  }
190
- exports.updateRootEsLintConfig = updateRootEsLintConfig;
191
197
  function cleanupEsLintPackages(tree) {
192
198
  (0, devkit_1.updateJson)(tree, 'package.json', (json) => {
193
199
  if (json.devDependencies?.['@angular-eslint/builder']) {
@@ -205,7 +211,6 @@ function cleanupEsLintPackages(tree) {
205
211
  return json;
206
212
  });
207
213
  }
208
- exports.cleanupEsLintPackages = cleanupEsLintPackages;
209
214
  async function createWorkspaceFiles(tree) {
210
215
  updateVsCodeRecommendedExtensions(tree);
211
216
  await (0, js_1.initGenerator)(tree, { skipFormat: true });
@@ -215,13 +220,11 @@ async function createWorkspaceFiles(tree) {
215
220
  rootTsConfigPath: (0, js_1.getRootTsConfigPathInTree)(tree),
216
221
  });
217
222
  }
218
- exports.createWorkspaceFiles = createWorkspaceFiles;
219
223
  function createRootKarmaConfig(tree) {
220
224
  (0, devkit_1.generateFiles)(tree, (0, devkit_1.joinPathFragments)(__dirname, '../files/root-karma'), '.', {
221
225
  tmpl: '',
222
226
  });
223
227
  }
224
- exports.createRootKarmaConfig = createRootKarmaConfig;
225
228
  function getWorkspaceRootFileTypesInfo(tree, migrators) {
226
229
  const workspaceRootFileTypesInfo = {
227
230
  eslint: false,
@@ -248,7 +251,6 @@ function getWorkspaceRootFileTypesInfo(tree, migrators) {
248
251
  }
249
252
  return workspaceRootFileTypesInfo;
250
253
  }
251
- exports.getWorkspaceRootFileTypesInfo = getWorkspaceRootFileTypesInfo;
252
254
  function updateVsCodeRecommendedExtensions(tree) {
253
255
  const recommendations = [
254
256
  'nrwl.angular-console',
@@ -273,14 +275,12 @@ function updateVsCodeRecommendedExtensions(tree) {
273
275
  });
274
276
  }
275
277
  }
276
- exports.updateVsCodeRecommendedExtensions = updateVsCodeRecommendedExtensions;
277
278
  function deleteAngularJson(tree) {
278
279
  const projects = (0, angular_json_1.toNewFormat)((0, devkit_1.readJson)(tree, 'angular.json')).projects;
279
280
  if (!Object.keys(projects).length) {
280
281
  tree.delete('angular.json');
281
282
  }
282
283
  }
283
- exports.deleteAngularJson = deleteAngularJson;
284
284
  function deleteGitKeepFilesIfNotNeeded(tree) {
285
285
  if (tree.children('apps').length > 1 && tree.exists('apps/.gitkeep')) {
286
286
  tree.delete('apps/.gitkeep');
@@ -289,4 +289,3 @@ function deleteGitKeepFilesIfNotNeeded(tree) {
289
289
  tree.delete('libs/.gitkeep');
290
290
  }
291
291
  }
292
- exports.deleteGitKeepFilesIfNotNeeded = deleteGitKeepFilesIfNotNeeded;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.addExportsToBarrel = void 0;
3
+ exports.addExportsToBarrel = addExportsToBarrel;
4
4
  const devkit_1 = require("@nx/devkit");
5
5
  const ensure_typescript_1 = require("@nx/js/src/utils/typescript/ensure-typescript");
6
6
  const js_1 = require("@nx/js");
@@ -42,4 +42,3 @@ function addExportsToBarrel(tree, options) {
42
42
  sourceFile = (0, js_1.addGlobal)(tree, sourceFile, indexFilePath, `export * from '${statePath}.facade';`);
43
43
  }
44
44
  }
45
- exports.addExportsToBarrel = addExportsToBarrel;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.addImportsToModule = void 0;
3
+ exports.addImportsToModule = addImportsToModule;
4
4
  const devkit_1 = require("@nx/devkit");
5
5
  const js_1 = require("@nx/js");
6
6
  const ensure_typescript_1 = require("@nx/js/src/utils/typescript/ensure-typescript");
@@ -179,4 +179,3 @@ function addImportsToModule(tree, options) {
179
179
  }
180
180
  }
181
181
  }
182
- exports.addImportsToModule = addImportsToModule;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.addNgRxToPackageJson = void 0;
3
+ exports.addNgRxToPackageJson = addNgRxToPackageJson;
4
4
  const devkit_1 = require("@nx/devkit");
5
5
  const semver_1 = require("semver");
6
6
  const version_utils_1 = require("../../utils/version-utils");
@@ -22,4 +22,3 @@ function addNgRxToPackageJson(tree, options) {
22
22
  'jasmine-marbles': jasmineMarblesVersion,
23
23
  });
24
24
  }
25
- exports.addNgRxToPackageJson = addNgRxToPackageJson;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.generateNgrxFilesFromTemplates = void 0;
3
+ exports.generateNgrxFilesFromTemplates = generateNgrxFilesFromTemplates;
4
4
  const devkit_1 = require("@nx/devkit");
5
5
  const semver_1 = require("semver");
6
6
  /**
@@ -20,4 +20,3 @@ function generateNgrxFilesFromTemplates(tree, options) {
20
20
  tree.delete((0, devkit_1.joinPathFragments)(options.parentDirectory, options.directory, `${projectNames.fileName}.facade.spec.ts`));
21
21
  }
22
22
  }
23
- exports.generateNgrxFilesFromTemplates = generateNgrxFilesFromTemplates;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.normalizeOptions = void 0;
3
+ exports.normalizeOptions = normalizeOptions;
4
4
  const devkit_1 = require("@nx/devkit");
5
5
  const semver_1 = require("@nx/devkit/src/utils/semver");
6
6
  const path_1 = require("path");
@@ -25,4 +25,3 @@ function normalizeOptions(tree, options) {
25
25
  rxjsVersion,
26
26
  };
27
27
  }
28
- exports.normalizeOptions = normalizeOptions;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.validateOptions = void 0;
3
+ exports.validateOptions = validateOptions;
4
4
  function validateOptions(tree, options) {
5
5
  if (!options.module && !options.parent) {
6
6
  throw new Error('Please provide a value for "--parent"!');
@@ -12,4 +12,3 @@ function validateOptions(tree, options) {
12
12
  throw new Error(`Parent does not exist: ${options.parent}.`);
13
13
  }
14
14
  }
15
- exports.validateOptions = validateOptions;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ngrxGenerator = void 0;
3
+ exports.ngrxGenerator = ngrxGenerator;
4
4
  const devkit_1 = require("@nx/devkit");
5
5
  const lib_1 = require("./lib");
6
6
  async function ngrxGenerator(tree, schema) {
@@ -22,5 +22,4 @@ async function ngrxGenerator(tree, schema) {
22
22
  }
23
23
  return packageInstallationTask;
24
24
  }
25
- exports.ngrxGenerator = ngrxGenerator;
26
25
  exports.default = ngrxGenerator;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.addExportsToBarrel = void 0;
3
+ exports.addExportsToBarrel = addExportsToBarrel;
4
4
  const devkit_1 = require("@nx/devkit");
5
5
  const ensure_typescript_1 = require("@nx/js/src/utils/typescript/ensure-typescript");
6
6
  const js_1 = require("@nx/js");
@@ -38,4 +38,3 @@ function addExportsToBarrel(tree, options) {
38
38
  sourceFile = (0, js_1.addGlobal)(tree, sourceFile, indexFilePath, `export * from '${statePath}.facade';`);
39
39
  }
40
40
  }
41
- exports.addExportsToBarrel = addExportsToBarrel;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.addImportsToModule = void 0;
3
+ exports.addImportsToModule = addImportsToModule;
4
4
  const devkit_1 = require("@nx/devkit");
5
5
  const ast_utils_1 = require("../../../utils/nx-devkit/ast-utils");
6
6
  const route_utils_1 = require("../../../utils/nx-devkit/route-utils");
@@ -99,4 +99,3 @@ function addImportsToModule(tree, options) {
99
99
  sourceFile = addStoreForFeatureImport(tree, isParentStandalone, options.route, sourceFile, parentPath, provideStoreForFeature, storeForFeature);
100
100
  sourceFile = addEffectsForFeatureImport(tree, isParentStandalone, options.route, sourceFile, parentPath, provideEffectsForFeature, effectsForFeature);
101
101
  }
102
- exports.addImportsToModule = addImportsToModule;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.addNgRxToPackageJson = void 0;
3
+ exports.addNgRxToPackageJson = addNgRxToPackageJson;
4
4
  const devkit_1 = require("@nx/devkit");
5
5
  const semver_1 = require("semver");
6
6
  const version_utils_1 = require("../../utils/version-utils");
@@ -22,4 +22,3 @@ function addNgRxToPackageJson(tree, options) {
22
22
  'jasmine-marbles': jasmineMarblesVersion,
23
23
  });
24
24
  }
25
- exports.addNgRxToPackageJson = addNgRxToPackageJson;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.generateFilesFromTemplates = void 0;
3
+ exports.generateFilesFromTemplates = generateFilesFromTemplates;
4
4
  const devkit_1 = require("@nx/devkit");
5
5
  const semver_1 = require("semver");
6
6
  function generateFilesFromTemplates(tree, options) {
@@ -21,4 +21,3 @@ function generateFilesFromTemplates(tree, options) {
21
21
  tree.delete((0, devkit_1.joinPathFragments)(options.parentDirectory, options.directory, `${options.subdirectory ? `${options.subdirectory}/` : ''}${projectNames.fileName}.facade.spec.ts`));
22
22
  }
23
23
  }
24
- exports.generateFilesFromTemplates = generateFilesFromTemplates;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.normalizeOptions = void 0;
3
+ exports.normalizeOptions = normalizeOptions;
4
4
  const devkit_1 = require("@nx/devkit");
5
5
  const semver_1 = require("@nx/devkit/src/utils/semver");
6
6
  const path_1 = require("path");
@@ -24,7 +24,6 @@ function normalizeOptions(tree, options) {
24
24
  rxjsVersion,
25
25
  };
26
26
  }
27
- exports.normalizeOptions = normalizeOptions;
28
27
  function determineSubdirectoryAndName(name) {
29
28
  if (name.includes('/')) {
30
29
  const parts = name.split('/');
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.validateOptions = void 0;
3
+ exports.validateOptions = validateOptions;
4
4
  function validateOptions(tree, options) {
5
5
  if (!options.parent) {
6
6
  throw new Error('Please provide a value for "--parent"!');
@@ -9,4 +9,3 @@ function validateOptions(tree, options) {
9
9
  throw new Error(`Parent does not exist: ${options.parent}.`);
10
10
  }
11
11
  }
12
- exports.validateOptions = validateOptions;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ngrxFeatureStoreGenerator = void 0;
3
+ exports.ngrxFeatureStoreGenerator = ngrxFeatureStoreGenerator;
4
4
  const devkit_1 = require("@nx/devkit");
5
5
  const lib_1 = require("./lib");
6
6
  async function ngrxFeatureStoreGenerator(tree, schema) {
@@ -22,5 +22,4 @@ async function ngrxFeatureStoreGenerator(tree, schema) {
22
22
  }
23
23
  return packageInstallationTask;
24
24
  }
25
- exports.ngrxFeatureStoreGenerator = ngrxFeatureStoreGenerator;
26
25
  exports.default = ngrxFeatureStoreGenerator;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.addImportsToModule = void 0;
3
+ exports.addImportsToModule = addImportsToModule;
4
4
  const ast_utils_1 = require("../../../utils/nx-devkit/ast-utils");
5
5
  const ensure_typescript_1 = require("@nx/js/src/utils/typescript/ensure-typescript");
6
6
  const js_1 = require("@nx/js");
@@ -98,4 +98,3 @@ function addImportsToModule(tree, options) {
98
98
  sourceFile = addStoreDevTools(tree, sourceFile, parentPath, isParentStandalone, addImport);
99
99
  }
100
100
  }
101
- exports.addImportsToModule = addImportsToModule;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.addNgRxToPackageJson = void 0;
3
+ exports.addNgRxToPackageJson = addNgRxToPackageJson;
4
4
  const devkit_1 = require("@nx/devkit");
5
5
  const semver_1 = require("semver");
6
6
  const version_utils_1 = require("../../utils/version-utils");
@@ -24,4 +24,3 @@ function addNgRxToPackageJson(tree, options) {
24
24
  'jasmine-marbles': jasmineMarblesVersion,
25
25
  });
26
26
  }
27
- exports.addNgRxToPackageJson = addNgRxToPackageJson;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.normalizeOptions = void 0;
3
+ exports.normalizeOptions = normalizeOptions;
4
4
  const devkit_1 = require("@nx/devkit");
5
5
  const semver_1 = require("@nx/devkit/src/utils/semver");
6
6
  const versions_1 = require("../../../utils/versions");
@@ -37,4 +37,3 @@ function normalizeOptions(tree, options) {
37
37
  rxjsVersion,
38
38
  };
39
39
  }
40
- exports.normalizeOptions = normalizeOptions;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.validateOptions = void 0;
3
+ exports.validateOptions = validateOptions;
4
4
  const devkit_1 = require("@nx/devkit");
5
5
  function validateOptions(tree, options) {
6
6
  if (!(0, devkit_1.getProjects)(tree).has(options.project)) {
@@ -14,4 +14,3 @@ function validateOptions(tree, options) {
14
14
  throw new Error(`If generating a global feature state with your root store, you must provide a name for it with '--name'.`);
15
15
  }
16
16
  }
17
- exports.validateOptions = validateOptions;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ngrxRootStoreGenerator = void 0;
3
+ exports.ngrxRootStoreGenerator = ngrxRootStoreGenerator;
4
4
  const tslib_1 = require("tslib");
5
5
  const devkit_1 = require("@nx/devkit");
6
6
  const lib_1 = require("./lib");
@@ -33,5 +33,4 @@ async function ngrxRootStoreGenerator(tree, schema) {
33
33
  }
34
34
  return packageInstallationTask;
35
35
  }
36
- exports.ngrxRootStoreGenerator = ngrxRootStoreGenerator;
37
36
  exports.default = ngrxRootStoreGenerator;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.normalizeOptions = void 0;
3
+ exports.normalizeOptions = normalizeOptions;
4
4
  const artifact_name_and_directory_utils_1 = require("@nx/devkit/src/generators/artifact-name-and-directory-utils");
5
5
  const devkit_1 = require("@nx/devkit");
6
6
  async function normalizeOptions(tree, options) {
@@ -28,4 +28,3 @@ async function normalizeOptions(tree, options) {
28
28
  standalone: options.standalone ?? true,
29
29
  };
30
30
  }
31
- exports.normalizeOptions = normalizeOptions;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.pipeGenerator = void 0;
3
+ exports.pipeGenerator = pipeGenerator;
4
4
  const devkit_1 = require("@nx/devkit");
5
5
  const utils_1 = require("../utils");
6
6
  const lib_1 = require("./lib");
@@ -26,5 +26,4 @@ async function pipeGenerator(tree, rawOptions) {
26
26
  await (0, devkit_1.formatFiles)(tree);
27
27
  }
28
28
  }
29
- exports.pipeGenerator = pipeGenerator;
30
29
  exports.default = pipeGenerator;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.findNextAvailablePort = void 0;
3
+ exports.findNextAvailablePort = findNextAvailablePort;
4
4
  const devkit_1 = require("@nx/devkit");
5
5
  const get_mf_projects_1 = require("../../../utils/get-mf-projects");
6
6
  function findNextAvailablePort(tree) {
@@ -14,4 +14,3 @@ function findNextAvailablePort(tree) {
14
14
  const nextAvailablePort = Math.max(...ports) + 1;
15
15
  return nextAvailablePort;
16
16
  }
17
- exports.findNextAvailablePort = findNextAvailablePort;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.updateSsrSetup = void 0;
3
+ exports.updateSsrSetup = updateSsrSetup;
4
4
  const devkit_1 = require("@nx/devkit");
5
5
  const path_1 = require("path");
6
6
  const versions_1 = require("../../../utils/versions");
@@ -64,4 +64,3 @@ async function updateSsrSetup(tree, { appName, port, standalone, typescriptConfi
64
64
  }
65
65
  return () => { };
66
66
  }
67
- exports.updateSsrSetup = updateSsrSetup;
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.remoteInternal = exports.remote = void 0;
3
+ exports.remote = remote;
4
+ exports.remoteInternal = remoteInternal;
4
5
  const devkit_1 = require("@nx/devkit");
5
6
  const project_name_and_root_utils_1 = require("@nx/devkit/src/generators/project-name-and-root-utils");
6
7
  const test_runners_1 = require("../../utils/test-runners");
@@ -15,7 +16,6 @@ async function remote(tree, options) {
15
16
  ...options,
16
17
  });
17
18
  }
18
- exports.remote = remote;
19
19
  async function remoteInternal(tree, schema) {
20
20
  const { typescriptConfiguration = true, ...options } = schema;
21
21
  options.standalone = options.standalone ?? true;
@@ -79,5 +79,4 @@ async function remoteInternal(tree, schema) {
79
79
  }
80
80
  return (0, devkit_1.runTasksInSerial)(...installTasks);
81
81
  }
82
- exports.remoteInternal = remoteInternal;
83
82
  exports.default = remote;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.convertComponentToScam = void 0;
3
+ exports.convertComponentToScam = convertComponentToScam;
4
4
  const devkit_1 = require("@nx/devkit");
5
5
  const js_1 = require("@nx/js");
6
6
  const ensure_typescript_1 = require("@nx/js/src/utils/typescript/ensure-typescript");
@@ -25,7 +25,6 @@ function convertComponentToScam(tree, options) {
25
25
  const moduleFilePath = (0, devkit_1.joinPathFragments)(options.directory, `${options.name}.module.ts`);
26
26
  tree.write(moduleFilePath, getModuleFileContent(options.symbolName, options.fileName));
27
27
  }
28
- exports.convertComponentToScam = convertComponentToScam;
29
28
  function getModuleFileContent(componentClassName, componentFileName) {
30
29
  return `import { NgModule } from '@angular/core';
31
30
  import { CommonModule } from '@angular/common';