@nx/angular 23.0.0-beta.2 → 23.0.0-beta.20
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.
- package/generators.d.ts +0 -2
- package/generators.d.ts.map +1 -1
- package/generators.js +0 -2
- package/generators.json +0 -13
- package/migrations.json +19 -536
- package/package.json +9 -11
- package/plugins/component-testing.js +8 -8
- package/src/builders/utilities/buildable-libs.d.ts +1 -1
- package/src/builders/utilities/buildable-libs.d.ts.map +1 -1
- package/src/builders/utilities/buildable-libs.js +3 -3
- package/src/builders/utilities/module-federation.d.ts.map +1 -1
- package/src/builders/utilities/module-federation.js +9 -11
- package/src/builders/utilities/webpack.d.ts.map +1 -1
- package/src/builders/utilities/webpack.js +3 -7
- package/src/executors/delegate-build/delegate-build.impl.js +3 -3
- package/src/executors/module-federation-dev-server/module-federation-dev-server.impl.d.ts.map +1 -1
- package/src/executors/module-federation-dev-server/module-federation-dev-server.impl.js +4 -5
- package/src/executors/module-federation-ssr-dev-server/module-federation-ssr-dev-server.impl.js +4 -5
- package/src/executors/ng-packagr-lite/ng-packagr-lite.impl.js +2 -2
- package/src/executors/package/package.impl.d.ts +1 -1
- package/src/executors/package/package.impl.d.ts.map +1 -1
- package/src/executors/package/package.impl.js +5 -5
- package/src/executors/utilities/angular-version-utils.d.ts.map +1 -1
- package/src/executors/utilities/angular-version-utils.js +3 -8
- package/src/executors/utilities/buildable-libs.d.ts +1 -1
- package/src/executors/utilities/buildable-libs.d.ts.map +1 -1
- package/src/executors/utilities/buildable-libs.js +3 -3
- package/src/executors/utilities/esbuild-extensions.d.ts.map +1 -1
- package/src/executors/utilities/esbuild-extensions.js +5 -24
- package/src/executors/utilities/module-loader.d.ts +1 -1
- package/src/executors/utilities/module-loader.d.ts.map +1 -1
- package/src/executors/utilities/module-loader.js +24 -20
- package/src/generators/add-linting/add-linting.d.ts.map +1 -1
- package/src/generators/add-linting/add-linting.js +17 -17
- package/src/generators/add-linting/lib/add-angular-eslint-dependencies.d.ts.map +1 -1
- package/src/generators/add-linting/lib/add-angular-eslint-dependencies.js +4 -5
- package/src/generators/application/application.d.ts.map +1 -1
- package/src/generators/application/application.js +7 -4
- package/src/generators/application/lib/add-e2e.d.ts.map +1 -1
- package/src/generators/application/lib/add-e2e.js +5 -7
- package/src/generators/application/lib/add-unit-test-runner.d.ts +2 -2
- package/src/generators/application/lib/add-unit-test-runner.d.ts.map +1 -1
- package/src/generators/application/lib/add-unit-test-runner.js +5 -5
- package/src/generators/application/lib/create-project.d.ts.map +1 -1
- package/src/generators/application/lib/create-project.js +3 -3
- package/src/generators/application/lib/normalize-options.js +3 -3
- package/src/generators/application/lib/update-tsconfig-files.js +3 -3
- package/src/generators/component/component.d.ts.map +1 -1
- package/src/generators/component/component.js +2 -0
- package/src/generators/component/lib/component.js +2 -2
- package/src/generators/component/lib/normalize-options.js +2 -2
- package/src/generators/component-story/component-story.d.ts.map +1 -1
- package/src/generators/component-story/component-story.js +2 -0
- package/src/generators/component-test/component-test.d.ts.map +1 -1
- package/src/generators/component-test/component-test.js +2 -0
- package/src/generators/convert-to-application-executor/convert-to-application-executor.d.ts.map +1 -1
- package/src/generators/convert-to-application-executor/convert-to-application-executor.js +2 -0
- package/src/generators/convert-to-rspack/convert-to-rspack.d.ts.map +1 -1
- package/src/generators/convert-to-rspack/convert-to-rspack.js +5 -4
- package/src/generators/convert-to-rspack/lib/create-config.js +1 -1
- package/src/generators/convert-to-rspack/lib/get-custom-webpack-config.js +2 -2
- package/src/generators/convert-to-with-mf/convert-to-with-mf.d.ts +1 -1
- package/src/generators/convert-to-with-mf/convert-to-with-mf.d.ts.map +1 -1
- package/src/generators/convert-to-with-mf/convert-to-with-mf.js +5 -0
- package/src/generators/convert-to-with-mf/lib/check-name-matches.js +2 -2
- package/src/generators/convert-to-with-mf/lib/check-shared-npm-packages.js +2 -2
- package/src/generators/convert-to-with-mf/lib/is-host-remote-config.js +4 -4
- package/src/generators/convert-to-with-mf/lib/parse-ast-webpack-config.js +2 -2
- package/src/generators/convert-to-with-mf/lib/write-new-webpack-config.js +1 -1
- package/src/generators/cypress-component-configuration/cypress-component-configuration.d.ts.map +1 -1
- package/src/generators/cypress-component-configuration/cypress-component-configuration.js +8 -6
- package/src/generators/directive/directive.d.ts.map +1 -1
- package/src/generators/directive/directive.js +2 -0
- package/src/generators/directive/lib/normalize-options.js +2 -2
- package/src/generators/federate-module/federate-module.d.ts.map +1 -1
- package/src/generators/federate-module/federate-module.js +2 -0
- package/src/generators/federate-module/lib/add-path-to-exposes.js +6 -6
- package/src/generators/federate-module/lib/add-remote.js +2 -2
- package/src/generators/host/host.d.ts.map +1 -1
- package/src/generators/host/host.js +10 -7
- package/src/generators/host/lib/update-ssr-setup.js +2 -2
- package/src/generators/host/schema.d.ts +1 -0
- package/src/generators/host/schema.json +4 -0
- package/src/generators/init/init.d.ts.map +1 -1
- package/src/generators/init/init.js +4 -2
- package/src/generators/library/lib/add-children.js +2 -2
- package/src/generators/library/lib/add-load-children.js +2 -2
- package/src/generators/library/lib/add-project.js +4 -4
- package/src/generators/library/lib/create-files.js +2 -2
- package/src/generators/library/lib/normalize-options.js +3 -3
- package/src/generators/library/lib/update-tsconfig-files.js +3 -3
- package/src/generators/library/library.d.ts.map +1 -1
- package/src/generators/library/library.js +16 -11
- package/src/generators/library-secondary-entry-point/library-secondary-entry-point.d.ts.map +1 -1
- package/src/generators/library-secondary-entry-point/library-secondary-entry-point.js +2 -0
- package/src/generators/move/lib/update-module-name.js +2 -2
- package/src/generators/ng-add/migrators/migrator.d.ts.map +1 -1
- package/src/generators/ng-add/migrators/migrator.js +10 -5
- package/src/generators/ng-add/migrators/projects/e2e.migrator.js +6 -6
- package/src/generators/ng-add/ng-add.d.ts.map +1 -1
- package/src/generators/ng-add/ng-add.js +2 -0
- package/src/generators/ng-add/utilities/workspace.js +8 -8
- package/src/generators/ngrx-feature-store/lib/add-exports-barrel.js +2 -2
- package/src/generators/ngrx-feature-store/lib/add-imports.js +2 -2
- package/src/generators/ngrx-feature-store/lib/normalize-options.js +5 -5
- package/src/generators/ngrx-feature-store/ngrx-feature-store.d.ts.map +1 -1
- package/src/generators/ngrx-feature-store/ngrx-feature-store.js +2 -0
- package/src/generators/ngrx-root-store/lib/add-imports.js +2 -2
- package/src/generators/ngrx-root-store/lib/normalize-options.js +5 -5
- package/src/generators/ngrx-root-store/ngrx-root-store.d.ts.map +1 -1
- package/src/generators/ngrx-root-store/ngrx-root-store.js +2 -0
- package/src/generators/pipe/lib/normalize-options.js +2 -2
- package/src/generators/pipe/pipe.d.ts.map +1 -1
- package/src/generators/pipe/pipe.js +2 -0
- package/src/generators/remote/lib/update-ssr-setup.js +2 -2
- package/src/generators/remote/remote.d.ts.map +1 -1
- package/src/generators/remote/remote.js +7 -5
- package/src/generators/scam/lib/convert-component-to-scam.js +2 -2
- package/src/generators/scam/lib/normalize-options.js +2 -2
- package/src/generators/scam/scam.d.ts.map +1 -1
- package/src/generators/scam/scam.js +2 -0
- package/src/generators/scam-directive/lib/convert-directive-to-scam.js +2 -2
- package/src/generators/scam-directive/lib/normalize-options.js +2 -2
- package/src/generators/scam-directive/scam-directive.d.ts.map +1 -1
- package/src/generators/scam-directive/scam-directive.js +2 -0
- package/src/generators/scam-pipe/lib/convert-pipe-to-scam.js +2 -2
- package/src/generators/scam-pipe/lib/normalize-options.js +2 -2
- package/src/generators/scam-pipe/scam-pipe.d.ts.map +1 -1
- package/src/generators/scam-pipe/scam-pipe.js +2 -0
- package/src/generators/scam-to-standalone/scam-to-standalone.d.ts.map +1 -1
- package/src/generators/scam-to-standalone/scam-to-standalone.js +2 -0
- package/src/generators/setup-mf/files/ts-webpack/module-federation.config.ts__tmpl__ +1 -1
- package/src/generators/setup-mf/lib/add-cypress-workaround.js +3 -3
- package/src/generators/setup-mf/lib/add-remote-to-host.d.ts.map +1 -1
- package/src/generators/setup-mf/lib/add-remote-to-host.js +5 -6
- package/src/generators/setup-mf/lib/change-build-target.d.ts.map +1 -1
- package/src/generators/setup-mf/lib/change-build-target.js +2 -2
- package/src/generators/setup-mf/lib/remove-dead-code-from-remote.js +2 -2
- package/src/generators/setup-mf/setup-mf.d.ts.map +1 -1
- package/src/generators/setup-mf/setup-mf.js +8 -0
- package/src/generators/setup-ssr/lib/add-hydration.d.ts.map +1 -1
- package/src/generators/setup-ssr/lib/add-hydration.js +3 -4
- package/src/generators/setup-ssr/lib/add-server-file.js +2 -2
- package/src/generators/setup-ssr/lib/generate-files.js +2 -2
- package/src/generators/setup-ssr/lib/generate-server-ts-config.js +2 -2
- package/src/generators/setup-ssr/lib/normalize-options.d.ts.map +1 -1
- package/src/generators/setup-ssr/lib/normalize-options.js +2 -2
- package/src/generators/setup-ssr/lib/update-project-config.d.ts.map +1 -1
- package/src/generators/setup-ssr/lib/update-project-config.js +19 -7
- package/src/generators/setup-ssr/setup-ssr.d.ts.map +1 -1
- package/src/generators/setup-ssr/setup-ssr.js +2 -0
- package/src/generators/stories/stories.d.ts.map +1 -1
- package/src/generators/stories/stories.js +2 -0
- package/src/generators/storybook-configuration/storybook-configuration.d.ts.map +1 -1
- package/src/generators/storybook-configuration/storybook-configuration.js +2 -0
- package/src/generators/utils/add-mf-env-to-inputs.d.ts.map +1 -1
- package/src/generators/utils/add-mf-env-to-inputs.js +16 -9
- package/src/generators/utils/add-vitest.d.ts +3 -3
- package/src/generators/utils/add-vitest.d.ts.map +1 -1
- package/src/generators/utils/add-vitest.js +41 -26
- package/src/generators/utils/app-components-info.js +2 -2
- package/src/generators/utils/find-module.js +2 -2
- package/src/generators/utils/insert-ngmodule-import.js +6 -6
- package/src/generators/utils/storybook-ast/component-info.js +5 -5
- package/src/generators/utils/storybook-ast/module-info.js +9 -9
- package/src/generators/utils/storybook-ast/storybook-inputs.js +4 -4
- package/src/generators/utils/testing.js +2 -2
- package/src/generators/utils/tsconfig-utils.js +2 -2
- package/src/generators/utils/validations.js +2 -2
- package/src/generators/utils/version-utils.d.ts.map +1 -1
- package/src/generators/utils/version-utils.js +2 -7
- package/src/generators/web-worker/web-worker.d.ts.map +1 -1
- package/src/generators/web-worker/web-worker.js +2 -0
- package/src/migrations/update-19-6-1/ensure-depends-on-for-mf.d.ts.map +1 -1
- package/src/migrations/update-19-6-1/ensure-depends-on-for-mf.js +26 -19
- package/src/migrations/update-20-2-0/disable-angular-eslint-prefer-standalone.js +8 -8
- package/src/migrations/update-20-2-0/migrate-with-mf-import-to-new-package.d.ts.map +1 -1
- package/src/migrations/update-20-2-0/migrate-with-mf-import-to-new-package.js +2 -2
- package/src/migrations/update-20-2-0/remove-angular-eslint-rules.js +6 -6
- package/src/migrations/update-20-2-0/remove-tailwind-config-from-ng-packagr-executors.d.ts.map +1 -1
- package/src/migrations/update-20-2-0/remove-tailwind-config-from-ng-packagr-executors.js +45 -12
- package/src/migrations/update-20-3-0/ensure-nx-module-federation-package.d.ts.map +1 -1
- package/src/migrations/update-20-3-0/ensure-nx-module-federation-package.js +2 -2
- package/src/migrations/update-21-0-0/change-data-persistence-operators-imports-to-ngrx-router-store-data-persistence.js +2 -2
- package/src/migrations/update-21-5-0/utils/karma-config-analyzer.js +2 -2
- package/src/migrations/update-22-3-0/update-module-resolution.js +2 -2
- package/src/migrations/update-22-3-0/update-ssr-webpack-config.js +2 -2
- package/src/migrations/{update-17-2-0/rename-webpack-dev-server.d.ts → update-23-0-0/migrate-ngrx-generator-defaults.d.ts} +1 -1
- package/src/migrations/update-23-0-0/migrate-ngrx-generator-defaults.d.ts.map +1 -0
- package/src/migrations/update-23-0-0/migrate-ngrx-generator-defaults.js +120 -0
- package/src/migrations/update-23-0-0/migrate-with-mf-import-to-new-package.d.ts +3 -0
- package/src/migrations/update-23-0-0/migrate-with-mf-import-to-new-package.d.ts.map +1 -0
- package/src/migrations/update-23-0-0/migrate-with-mf-import-to-new-package.js +45 -0
- package/src/plugins/plugin.d.ts.map +1 -1
- package/src/plugins/plugin.js +54 -22
- package/src/utils/assert-supported-angular-version.d.ts +3 -0
- package/src/utils/assert-supported-angular-version.d.ts.map +1 -0
- package/src/utils/assert-supported-angular-version.js +9 -0
- package/src/utils/backward-compatible-versions.js +2 -2
- package/src/utils/get-mf-projects.js +3 -3
- package/src/utils/index.d.ts +1 -0
- package/src/utils/index.d.ts.map +1 -1
- package/src/utils/index.js +3 -1
- package/src/utils/nx-devkit/ast-utils.d.ts.map +1 -1
- package/src/utils/nx-devkit/ast-utils.js +17 -18
- package/src/utils/nx-devkit/route-utils.js +3 -3
- package/src/utils/versions.d.ts +1 -1
- package/src/utils/versions.d.ts.map +1 -1
- package/src/utils/versions.js +8 -3
- package/tailwind.js +2 -2
- package/module-federation/index.d.ts +0 -6
- package/module-federation/index.d.ts.map +0 -1
- package/module-federation/index.js +0 -6
- package/src/generators/add-linting/lib/create-eslint-configuration.d.ts +0 -16
- package/src/generators/add-linting/lib/create-eslint-configuration.d.ts.map +0 -1
- package/src/generators/add-linting/lib/create-eslint-configuration.js +0 -121
- package/src/generators/move/move.d.ts +0 -7
- package/src/generators/move/move.d.ts.map +0 -1
- package/src/generators/move/move.js +0 -11
- package/src/generators/move/schema.d.ts +0 -8
- package/src/generators/move/schema.json +0 -56
- package/src/generators/ngrx/files/__directory__/__fileName__.actions.ts__tmpl__ +0 -16
- package/src/generators/ngrx/files/__directory__/__fileName__.effects.spec.ts__tmpl__ +0 -37
- package/src/generators/ngrx/files/__directory__/__fileName__.effects.ts__tmpl__ +0 -22
- package/src/generators/ngrx/files/__directory__/__fileName__.facade.spec.ts__tmpl__ +0 -103
- package/src/generators/ngrx/files/__directory__/__fileName__.facade.ts__tmpl__ +0 -27
- package/src/generators/ngrx/files/__directory__/__fileName__.models.ts__tmpl__ +0 -7
- package/src/generators/ngrx/files/__directory__/__fileName__.reducer.spec.ts__tmpl__ +0 -37
- package/src/generators/ngrx/files/__directory__/__fileName__.reducer.ts__tmpl__ +0 -41
- package/src/generators/ngrx/files/__directory__/__fileName__.selectors.spec.ts__tmpl__ +0 -58
- package/src/generators/ngrx/files/__directory__/__fileName__.selectors.ts__tmpl__ +0 -38
- package/src/generators/ngrx/lib/add-exports-barrel.d.ts +0 -7
- package/src/generators/ngrx/lib/add-exports-barrel.d.ts.map +0 -1
- package/src/generators/ngrx/lib/add-exports-barrel.js +0 -44
- package/src/generators/ngrx/lib/add-imports-to-module.d.ts +0 -4
- package/src/generators/ngrx/lib/add-imports-to-module.d.ts.map +0 -1
- package/src/generators/ngrx/lib/add-imports-to-module.js +0 -181
- package/src/generators/ngrx/lib/add-ngrx-to-package-json.d.ts +0 -4
- package/src/generators/ngrx/lib/add-ngrx-to-package-json.d.ts.map +0 -1
- package/src/generators/ngrx/lib/add-ngrx-to-package-json.js +0 -23
- package/src/generators/ngrx/lib/generate-files.d.ts +0 -7
- package/src/generators/ngrx/lib/generate-files.d.ts.map +0 -1
- package/src/generators/ngrx/lib/generate-files.js +0 -23
- package/src/generators/ngrx/lib/index.d.ts +0 -7
- package/src/generators/ngrx/lib/index.d.ts.map +0 -1
- package/src/generators/ngrx/lib/index.js +0 -15
- package/src/generators/ngrx/lib/normalize-options.d.ts +0 -9
- package/src/generators/ngrx/lib/normalize-options.d.ts.map +0 -1
- package/src/generators/ngrx/lib/normalize-options.js +0 -30
- package/src/generators/ngrx/lib/validate-options.d.ts +0 -4
- package/src/generators/ngrx/lib/validate-options.d.ts.map +0 -1
- package/src/generators/ngrx/lib/validate-options.js +0 -14
- package/src/generators/ngrx/ngrx.d.ts +0 -8
- package/src/generators/ngrx/ngrx.d.ts.map +0 -1
- package/src/generators/ngrx/ngrx.js +0 -28
- package/src/generators/ngrx/schema.d.ts +0 -14
- package/src/generators/ngrx/schema.json +0 -102
- package/src/migrations/update-17-1-0/browser-target-to-build-target.d.ts +0 -4
- package/src/migrations/update-17-1-0/browser-target-to-build-target.d.ts.map +0 -1
- package/src/migrations/update-17-1-0/browser-target-to-build-target.js +0 -50
- package/src/migrations/update-17-1-0/replace-nguniversal-builders.d.ts +0 -3
- package/src/migrations/update-17-1-0/replace-nguniversal-builders.d.ts.map +0 -1
- package/src/migrations/update-17-1-0/replace-nguniversal-builders.js +0 -75
- package/src/migrations/update-17-1-0/replace-nguniversal-engines.d.ts +0 -3
- package/src/migrations/update-17-1-0/replace-nguniversal-engines.d.ts.map +0 -1
- package/src/migrations/update-17-1-0/replace-nguniversal-engines.js +0 -184
- package/src/migrations/update-17-1-0/update-angular-cli.d.ts +0 -4
- package/src/migrations/update-17-1-0/update-angular-cli.d.ts.map +0 -1
- package/src/migrations/update-17-1-0/update-angular-cli.js +0 -14
- package/src/migrations/update-17-1-0/update-zone-js-deep-import.d.ts +0 -3
- package/src/migrations/update-17-1-0/update-zone-js-deep-import.d.ts.map +0 -1
- package/src/migrations/update-17-1-0/update-zone-js-deep-import.js +0 -37
- package/src/migrations/update-17-2-0/rename-webpack-dev-server.d.ts.map +0 -1
- package/src/migrations/update-17-2-0/rename-webpack-dev-server.js +0 -40
- package/src/migrations/update-17-3-0/add-autoprefixer-dependency.d.ts +0 -3
- package/src/migrations/update-17-3-0/add-autoprefixer-dependency.d.ts.map +0 -1
- package/src/migrations/update-17-3-0/add-autoprefixer-dependency.js +0 -25
- package/src/migrations/update-17-3-0/add-browser-sync-dependency.d.ts +0 -3
- package/src/migrations/update-17-3-0/add-browser-sync-dependency.d.ts.map +0 -1
- package/src/migrations/update-17-3-0/add-browser-sync-dependency.js +0 -25
- package/src/migrations/update-17-3-0/update-angular-cli.d.ts +0 -4
- package/src/migrations/update-17-3-0/update-angular-cli.d.ts.map +0 -1
- package/src/migrations/update-17-3-0/update-angular-cli.js +0 -14
- package/src/migrations/update-18-0-0/add-mf-env-var-to-target-defaults.d.ts +0 -3
- package/src/migrations/update-18-0-0/add-mf-env-var-to-target-defaults.d.ts.map +0 -1
- package/src/migrations/update-18-0-0/add-mf-env-var-to-target-defaults.js +0 -26
- package/src/migrations/update-18-1-0/update-angular-cli.d.ts +0 -4
- package/src/migrations/update-18-1-0/update-angular-cli.d.ts.map +0 -1
- package/src/migrations/update-18-1-0/update-angular-cli.js +0 -14
- package/src/migrations/update-18-1-1/fix-target-defaults-inputs.d.ts +0 -3
- package/src/migrations/update-18-1-1/fix-target-defaults-inputs.d.ts.map +0 -1
- package/src/migrations/update-18-1-1/fix-target-defaults-inputs.js +0 -53
- package/src/migrations/update-18-2-0/update-angular-cli.d.ts +0 -4
- package/src/migrations/update-18-2-0/update-angular-cli.d.ts.map +0 -1
- package/src/migrations/update-18-2-0/update-angular-cli.js +0 -14
- package/src/migrations/update-19-1-0/update-angular-cli.d.ts +0 -4
- package/src/migrations/update-19-1-0/update-angular-cli.d.ts.map +0 -1
- package/src/migrations/update-19-1-0/update-angular-cli.js +0 -14
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/angular",
|
|
3
|
-
"version": "23.0.0-beta.
|
|
3
|
+
"version": "23.0.0-beta.20",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "The Nx Plugin for Angular contains executors, generators, and utilities for managing Angular applications and libraries within an Nx workspace. It provides: \n\n- Integration with libraries such as Storybook, Jest, ESLint, Playwright and Cypress. \n\n- Generators to help scaffold code quickly (like: Micro Frontends, Libraries, both internal to your codebase and publishable to npm) \n\n- Single Component Application Modules (SCAMs) \n\n- NgRx helpers. \n\n- Utilities for automatic workspace refactoring.",
|
|
6
6
|
"repository": {
|
|
@@ -24,7 +24,6 @@
|
|
|
24
24
|
"./executors": "./executors.js",
|
|
25
25
|
"./plugin": "./plugin.js",
|
|
26
26
|
"./tailwind": "./tailwind.js",
|
|
27
|
-
"./module-federation": "./module-federation/index.js",
|
|
28
27
|
"./src/utils": "./src/utils/index.js",
|
|
29
28
|
"./plugins/component-testing": "./plugins/component-testing.js",
|
|
30
29
|
"./src/generators/utils": "./src/generators/utils/index.js",
|
|
@@ -62,15 +61,14 @@
|
|
|
62
61
|
"migrations": "./migrations.json"
|
|
63
62
|
},
|
|
64
63
|
"dependencies": {
|
|
65
|
-
"@nx/devkit": "23.0.0-beta.
|
|
66
|
-
"@nx/eslint": "23.0.0-beta.
|
|
67
|
-
"@nx/js": "23.0.0-beta.
|
|
68
|
-
"@nx/module-federation": "23.0.0-beta.
|
|
69
|
-
"@nx/rspack": "23.0.0-beta.
|
|
70
|
-
"@nx/web": "23.0.0-beta.
|
|
71
|
-
"@nx/webpack": "23.0.0-beta.
|
|
72
|
-
"@
|
|
73
|
-
"@phenomnomnominal/tsquery": "~6.1.4",
|
|
64
|
+
"@nx/devkit": "23.0.0-beta.20",
|
|
65
|
+
"@nx/eslint": "23.0.0-beta.20",
|
|
66
|
+
"@nx/js": "23.0.0-beta.20",
|
|
67
|
+
"@nx/module-federation": "23.0.0-beta.20",
|
|
68
|
+
"@nx/rspack": "23.0.0-beta.20",
|
|
69
|
+
"@nx/web": "23.0.0-beta.20",
|
|
70
|
+
"@nx/webpack": "23.0.0-beta.20",
|
|
71
|
+
"@phenomnomnominal/tsquery": "~6.2.0",
|
|
74
72
|
"@typescript-eslint/type-utils": "^8.0.0",
|
|
75
73
|
"enquirer": "~2.3.6",
|
|
76
74
|
"magic-string": "~0.30.2",
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.nxComponentTestingPreset = nxComponentTestingPreset;
|
|
4
4
|
const cypress_preset_1 = require("@nx/cypress/plugins/cypress-preset");
|
|
5
|
-
const
|
|
5
|
+
const internal_1 = require("@nx/cypress/internal");
|
|
6
6
|
const devkit_1 = require("@nx/devkit");
|
|
7
|
-
const
|
|
7
|
+
const internal_2 = require("@nx/js/internal");
|
|
8
8
|
const fs_1 = require("fs");
|
|
9
9
|
const path_1 = require("path");
|
|
10
10
|
const semver_1 = require("semver");
|
|
@@ -46,9 +46,9 @@ This is likely due to not running via nx. i.e. 'nx component-test my-project'.
|
|
|
46
46
|
Please open an issue if this error persists.
|
|
47
47
|
${e.stack ? e.stack : e}`);
|
|
48
48
|
}
|
|
49
|
-
const ctProjectConfig = (0,
|
|
49
|
+
const ctProjectConfig = (0, internal_1.getProjectConfigByPath)(graph, pathToConfig);
|
|
50
50
|
const ctConfigurationName = process.env.NX_CYPRESS_TARGET_CONFIGURATION;
|
|
51
|
-
const ctContext = (0,
|
|
51
|
+
const ctContext = (0, internal_1.createExecutorContext)(graph, ctProjectConfig.targets, ctProjectConfig.name, options?.ctTargetName || 'component-test', ctConfigurationName);
|
|
52
52
|
const buildTarget = options?.buildTarget
|
|
53
53
|
? (0, devkit_1.parseTargetString)(options.buildTarget, graph)
|
|
54
54
|
: // for backwards compat, if no buildTargetin the preset options, get it from the target options
|
|
@@ -65,7 +65,7 @@ ${e.stack ? e.stack : e}`);
|
|
|
65
65
|
const offset = isOffsetNeeded(ctContext, ctProjectConfig)
|
|
66
66
|
? (0, devkit_1.offsetFromRoot)(normalizedFromWorkspaceRootPath)
|
|
67
67
|
: undefined;
|
|
68
|
-
const buildContext = (0,
|
|
68
|
+
const buildContext = (0, internal_1.createExecutorContext)(graph, graph.nodes[buildTarget.project]?.data.targets, buildTarget.project, buildTarget.target, buildTarget.configuration);
|
|
69
69
|
const buildableProjectConfig = normalizeBuildTargetOptions(buildContext, ctContext, offset);
|
|
70
70
|
return {
|
|
71
71
|
...(0, cypress_preset_1.nxBaseCypressPreset)(pathToConfig, { testingType: 'component' }),
|
|
@@ -116,7 +116,7 @@ function normalizeBuildTargetOptions(buildContext, ctContext, offset) {
|
|
|
116
116
|
configuration: buildContext.configurationName,
|
|
117
117
|
}, buildContext);
|
|
118
118
|
const project = buildContext.projectsConfigurations.projects[buildContext.projectName];
|
|
119
|
-
const sourceRoot = (0,
|
|
119
|
+
const sourceRoot = (0, internal_2.getProjectSourceRoot)(project);
|
|
120
120
|
const buildOptions = withSchemaDefaults(options, sourceRoot, buildContext.root);
|
|
121
121
|
// cypress creates a tsconfig if one isn't preset
|
|
122
122
|
// that contains all the support required for angular and component tests
|
|
@@ -158,7 +158,7 @@ function normalizeBuildTargetOptions(buildContext, ctContext, offset) {
|
|
|
158
158
|
// then we don't want to have the assets/scripts/styles be included to
|
|
159
159
|
// prevent inclusion of unintended stuff like tailwind
|
|
160
160
|
if (buildContext.projectName === ctContext.projectName ||
|
|
161
|
-
(0,
|
|
161
|
+
(0, internal_1.isCtProjectUsingBuildProject)(ctContext.projectGraph, buildContext.projectName, ctContext.projectName)) {
|
|
162
162
|
if (offset) {
|
|
163
163
|
buildOptions.assets = buildOptions.assets.map((asset) => {
|
|
164
164
|
return typeof asset === 'string'
|
|
@@ -248,7 +248,7 @@ function getTempStylesForTailwind(ctExecutorContext) {
|
|
|
248
248
|
const rootTailwindPath = (0, path_1.join)(ctExecutorContext.root, 'tailwind.config');
|
|
249
249
|
const isTailWindInRoot = exts.some((ext) => (0, fs_1.existsSync)(`${rootTailwindPath}.${ext}`));
|
|
250
250
|
if (isTailWindInRoot || isTailWindInCtProject) {
|
|
251
|
-
const pathToStyle = (0,
|
|
251
|
+
const pathToStyle = (0, internal_1.getTempTailwindPath)(ctExecutorContext);
|
|
252
252
|
try {
|
|
253
253
|
(0, fs_1.mkdirSync)((0, path_1.dirname)(pathToStyle), { recursive: true });
|
|
254
254
|
(0, fs_1.writeFileSync)(pathToStyle, `
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DependentBuildableProjectNode } from '@nx/js/
|
|
1
|
+
import { DependentBuildableProjectNode } from '@nx/js/internal';
|
|
2
2
|
import { ProjectGraph } from '@nx/devkit';
|
|
3
3
|
export declare function createTmpTsConfigForBuildableLibs(tsConfigPath: string, context: import('@angular-devkit/architect').BuilderContext, options?: {
|
|
4
4
|
projectGraph?: ProjectGraph;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"buildable-libs.d.ts","sourceRoot":"","sources":["../../../../../../packages/angular/src/builders/utilities/buildable-libs.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,6BAA6B,EAC9B,MAAM,
|
|
1
|
+
{"version":3,"file":"buildable-libs.d.ts","sourceRoot":"","sources":["../../../../../../packages/angular/src/builders/utilities/buildable-libs.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,6BAA6B,EAC9B,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,YAAY,EAA0B,MAAM,YAAY,CAAC;AAGlE,wBAAgB,iCAAiC,CAC/C,YAAY,EAAE,MAAM,EACpB,OAAO,EAAE,OAAO,2BAA2B,EAAE,cAAc,EAC3D,OAAO,CAAC,EAAE;IAAE,YAAY,CAAC,EAAE,YAAY,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE;;;EAqB3D"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.createTmpTsConfigForBuildableLibs = createTmpTsConfigForBuildableLibs;
|
|
4
|
-
const
|
|
4
|
+
const internal_1 = require("@nx/js/internal");
|
|
5
5
|
const devkit_1 = require("@nx/devkit");
|
|
6
6
|
const path_1 = require("path");
|
|
7
7
|
function createTmpTsConfigForBuildableLibs(tsConfigPath, context, options) {
|
|
8
8
|
let dependencies;
|
|
9
|
-
const result = (0,
|
|
9
|
+
const result = (0, internal_1.calculateProjectDependencies)(options?.projectGraph ?? (0, devkit_1.readCachedProjectGraph)(), context.workspaceRoot, context.target.project, options?.target ?? context.target.target, context.target.configuration);
|
|
10
10
|
dependencies = result.dependencies;
|
|
11
|
-
const tmpTsConfigPath = (0,
|
|
11
|
+
const tmpTsConfigPath = (0, internal_1.createTmpTsConfig)((0, path_1.join)(context.workspaceRoot, tsConfigPath), context.workspaceRoot, result.target.data.root, dependencies);
|
|
12
12
|
process.env.NX_TSCONFIG_PATH = tmpTsConfigPath;
|
|
13
13
|
return { tsConfigPath: tmpTsConfigPath, dependencies };
|
|
14
14
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"module-federation.d.ts","sourceRoot":"","sources":["../../../../../../packages/angular/src/builders/utilities/module-federation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAU,oBAAoB,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"module-federation.d.ts","sourceRoot":"","sources":["../../../../../../packages/angular/src/builders/utilities/module-federation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAU,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAK1D,MAAM,MAAM,mBAAmB,GAC3B,MAAM,GACN;IAAE,UAAU,EAAE,MAAM,CAAC;IAAC,aAAa,EAAE,MAAM,CAAA;CAAE,CAAC;AAElD,wBAAgB,iBAAiB,CAC/B,OAAO,EAAE,oBAAoB,EAC7B,OAAO,EAAE,OAAO,2BAA2B,EAAE,cAAc,EAC3D,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,oBAAoB,CAAC,EACvD,aAAa,EAAE,GAAG,CAAC,MAAM,CAAC,EAC1B,kBAAkB,EAAE,MAAM,GAAG,SAAS,GACrC,MAAM,EAAE,CA6DV;AA2CD,wBAAgB,gBAAgB,CAC9B,OAAO,EAAE,oBAAoB,EAC7B,OAAO,EAAE,OAAO,2BAA2B,EAAE,cAAc,EAC3D,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,oBAAoB,CAAC,EACvD,aAAa,EAAE,GAAG,CAAC,MAAM,CAAC,GACzB,MAAM,EAAE,CAoCV;AAED,wBAAgB,kBAAkB,CAChC,OAAO,EAAE;IACP,UAAU,EAAE,mBAAmB,EAAE,CAAC;CACnC,EACD,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,oBAAoB,CAAC,GACtD,IAAI,CAgBN;AAED,wBAAgB,wBAAwB,CACtC,OAAO,EAAE,oBAAoB,EAC7B,aAAa,EAAE,MAAM,GACpB,MAAM,GAAG,SAAS,CAepB"}
|
|
@@ -5,8 +5,7 @@ exports.getStaticRemotes = getStaticRemotes;
|
|
|
5
5
|
exports.validateDevRemotes = validateDevRemotes;
|
|
6
6
|
exports.getDynamicMfManifestFile = getDynamicMfManifestFile;
|
|
7
7
|
const devkit_1 = require("@nx/devkit");
|
|
8
|
-
const internal_1 = require("@nx/js/
|
|
9
|
-
const ts_solution_setup_1 = require("@nx/js/src/utils/typescript/ts-solution-setup");
|
|
8
|
+
const internal_1 = require("@nx/js/internal");
|
|
10
9
|
const fs_1 = require("fs");
|
|
11
10
|
const path_1 = require("path");
|
|
12
11
|
function getDynamicRemotes(project, context, workspaceProjects, remotesToSkip, pathToManifestFile) {
|
|
@@ -48,15 +47,14 @@ function getDynamicRemotes(project, context, workspaceProjects, remotesToSkip, p
|
|
|
48
47
|
function getModuleFederationConfig(tsconfigPath, workspaceRoot, projectRoot) {
|
|
49
48
|
const moduleFederationConfigPathJS = (0, path_1.join)(workspaceRoot, projectRoot, 'module-federation.config.js');
|
|
50
49
|
const moduleFederationConfigPathTS = (0, path_1.join)(workspaceRoot, projectRoot, 'module-federation.config.ts');
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
moduleFederationConfigPath = moduleFederationConfigPathTS;
|
|
56
|
-
}
|
|
50
|
+
const isTsConfig = (0, fs_1.existsSync)(moduleFederationConfigPathTS);
|
|
51
|
+
const moduleFederationConfigPath = isTsConfig
|
|
52
|
+
? moduleFederationConfigPathTS
|
|
53
|
+
: moduleFederationConfigPathJS;
|
|
57
54
|
try {
|
|
58
|
-
const config =
|
|
59
|
-
|
|
55
|
+
const config = isTsConfig
|
|
56
|
+
? (0, internal_1.loadTsFile)(moduleFederationConfigPath, (0, path_1.join)(workspaceRoot, tsconfigPath))
|
|
57
|
+
: require(moduleFederationConfigPath);
|
|
60
58
|
return {
|
|
61
59
|
mfeConfig: config.default || config,
|
|
62
60
|
mfConfigPath: moduleFederationConfigPath,
|
|
@@ -106,6 +104,6 @@ function getDynamicMfManifestFile(project, workspaceRoot) {
|
|
|
106
104
|
// at the old path.
|
|
107
105
|
return [
|
|
108
106
|
(0, path_1.join)(workspaceRoot, project.root, 'public/module-federation.manifest.json'),
|
|
109
|
-
(0, path_1.join)(workspaceRoot, (0,
|
|
107
|
+
(0, path_1.join)(workspaceRoot, (0, internal_1.getProjectSourceRoot)(project), 'assets/module-federation.manifest.json'),
|
|
110
108
|
].find((path) => (0, fs_1.existsSync)(path));
|
|
111
109
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webpack.d.ts","sourceRoot":"","sources":["../../../../../../packages/angular/src/builders/utilities/webpack.ts"],"names":[],"mappings":"AAMA,wBAAsB,wBAAwB,CAC5C,iBAAiB,EAAE,GAAG,EACtB,mBAAmB,EAAE,MAAM,EAC3B,OAAO,EAAE;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,EAC/C,MAAM,EAAE,OAAO,2BAA2B,EAAE,MAAM,gBAqDnD;AAED,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"webpack.d.ts","sourceRoot":"","sources":["../../../../../../packages/angular/src/builders/utilities/webpack.ts"],"names":[],"mappings":"AAMA,wBAAsB,wBAAwB,CAC5C,iBAAiB,EAAE,GAAG,EACtB,mBAAmB,EAAE,MAAM,EAC3B,OAAO,EAAE;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,EAC/C,MAAM,EAAE,OAAO,2BAA2B,EAAE,MAAM,gBAqDnD;AAED,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAQxE;AAED,wBAAgB,2BAA2B,CACzC,IAAI,EAAE,MAAM,EACZ,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,OAAO,2BAA2B,EAAE,MAAM,IAK1C,cAAS,SAClB"}
|
|
@@ -4,7 +4,7 @@ exports.mergeCustomWebpackConfig = mergeCustomWebpackConfig;
|
|
|
4
4
|
exports.resolveCustomWebpackConfig = resolveCustomWebpackConfig;
|
|
5
5
|
exports.resolveIndexHtmlTransformer = resolveIndexHtmlTransformer;
|
|
6
6
|
const webpack_merge_1 = require("webpack-merge");
|
|
7
|
-
const internal_1 = require("@nx/js/
|
|
7
|
+
const internal_1 = require("@nx/js/internal");
|
|
8
8
|
const devkit_1 = require("@nx/devkit");
|
|
9
9
|
const path_1 = require("path");
|
|
10
10
|
const fs_1 = require("fs");
|
|
@@ -51,9 +51,7 @@ async function mergeCustomWebpackConfig(baseWebpackConfig, pathToWebpackConfig,
|
|
|
51
51
|
return newConfig;
|
|
52
52
|
}
|
|
53
53
|
function resolveCustomWebpackConfig(path, tsConfig) {
|
|
54
|
-
const
|
|
55
|
-
const customWebpackConfig = require(path);
|
|
56
|
-
cleanupTranspiler();
|
|
54
|
+
const customWebpackConfig = (0, internal_1.loadTsFile)(path, tsConfig);
|
|
57
55
|
// If the user provides a configuration in TS file
|
|
58
56
|
// then there are 2 cases for exporting an object. The first one is:
|
|
59
57
|
// `module.exports = { ... }`. And the second one is:
|
|
@@ -62,9 +60,7 @@ function resolveCustomWebpackConfig(path, tsConfig) {
|
|
|
62
60
|
return customWebpackConfig.default ?? customWebpackConfig;
|
|
63
61
|
}
|
|
64
62
|
function resolveIndexHtmlTransformer(path, tsConfig, target) {
|
|
65
|
-
const
|
|
66
|
-
const indexTransformer = require(path);
|
|
67
|
-
cleanupTranspiler();
|
|
63
|
+
const indexTransformer = (0, internal_1.loadTsFile)(path, tsConfig);
|
|
68
64
|
const transform = indexTransformer.default ?? indexTransformer;
|
|
69
65
|
return (indexHtml) => transform(target, indexHtml);
|
|
70
66
|
}
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.delegateBuildExecutor = delegateBuildExecutor;
|
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
|
5
|
-
const
|
|
5
|
+
const internal_1 = require("@nx/js/internal");
|
|
6
6
|
async function* delegateBuildExecutor(options, context) {
|
|
7
|
-
const { target, dependencies } = (0,
|
|
8
|
-
options.tsConfig = (0,
|
|
7
|
+
const { target, dependencies } = (0, internal_1.calculateProjectBuildableDependencies)(context.taskGraph, context.projectGraph, context.root, context.projectName, context.targetName, context.configurationName);
|
|
8
|
+
options.tsConfig = (0, internal_1.createTmpTsConfig)((0, devkit_1.joinPathFragments)(context.root, options.tsConfig), context.root, target.data.root, dependencies);
|
|
9
9
|
const { buildTarget, ...targetOptions } = options;
|
|
10
10
|
const delegateTarget = (0, devkit_1.parseTargetString)(buildTarget, context);
|
|
11
11
|
yield* await (0, devkit_1.runExecutor)(delegateTarget, targetOptions, context);
|
package/src/executors/module-federation-dev-server/module-federation-dev-server.impl.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"module-federation-dev-server.impl.d.ts","sourceRoot":"","sources":["../../../../../../packages/angular/src/executors/module-federation-dev-server/module-federation-dev-server.impl.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"module-federation-dev-server.impl.d.ts","sourceRoot":"","sources":["../../../../../../packages/angular/src/executors/module-federation-dev-server/module-federation-dev-server.impl.ts"],"names":[],"mappings":"AAMA,OAAO,EACL,KAAK,eAAe,EAGrB,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,UAAU,CAAC;AAkCvC,wBAAuB,iCAAiC,CACtD,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,eAAe,iCAgIzB;AAED,eAAe,iCAAiC,CAAC"}
|
|
@@ -2,10 +2,9 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.moduleFederationDevServerExecutor = moduleFederationDevServerExecutor;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
+
const internal_1 = require("@nx/devkit/internal");
|
|
5
6
|
const devkit_1 = require("@nx/devkit");
|
|
6
7
|
const lib_1 = require("./lib");
|
|
7
|
-
const rxjs_for_await_1 = require("@nx/devkit/src/utils/rxjs-for-await");
|
|
8
|
-
const async_iterable_1 = require("@nx/devkit/src/utils/async-iterable");
|
|
9
8
|
const utils_1 = require("@nx/module-federation/src/executors/utils");
|
|
10
9
|
const wait_for_port_open_1 = require("@nx/web/src/utils/wait-for-port-open");
|
|
11
10
|
const file_server_impl_1 = tslib_1.__importDefault(require("@nx/web/src/executors/file-server/file-server.impl"));
|
|
@@ -46,7 +45,7 @@ async function* moduleFederationDevServerExecutor(schema, context) {
|
|
|
46
45
|
cors: true,
|
|
47
46
|
cacheSeconds: -1,
|
|
48
47
|
}, context)
|
|
49
|
-
: (0,
|
|
48
|
+
: (0, internal_1.eachValueFrom)((0, dev_server_impl_1.executeDevServerBuilder)(options, await (0, ngcli_adapter_1.createBuilderContext)({
|
|
50
49
|
builderName: '@nx/angular:webpack-browser',
|
|
51
50
|
description: 'Build a browser application',
|
|
52
51
|
optionSchema: require('../../builders/webpack-browser/schema.json'),
|
|
@@ -70,11 +69,11 @@ async function* moduleFederationDevServerExecutor(schema, context) {
|
|
|
70
69
|
}
|
|
71
70
|
(0, module_federation_1.validateDevRemotes)(options, workspaceProjects);
|
|
72
71
|
const { remotes, staticRemotesIter, devRemoteIters } = await (0, utils_1.startRemoteIterators)(options, context, lib_1.startRemotes, pathToManifestFile, 'angular');
|
|
73
|
-
const removeBaseUrlEmission = (iter) => (0,
|
|
72
|
+
const removeBaseUrlEmission = (iter) => (0, internal_1.mapAsyncIterable)(iter, (v) => ({
|
|
74
73
|
...v,
|
|
75
74
|
baseUrl: undefined,
|
|
76
75
|
}));
|
|
77
|
-
return yield* (0,
|
|
76
|
+
return yield* (0, internal_1.combineAsyncIterables)(removeBaseUrlEmission(currIter), ...devRemoteIters.map(removeBaseUrlEmission), ...(staticRemotesIter ? [removeBaseUrlEmission(staticRemotesIter)] : []), (0, internal_1.createAsyncIterable)(async ({ next, done }) => {
|
|
78
77
|
if (!options.isInitialHost) {
|
|
79
78
|
done();
|
|
80
79
|
return;
|
package/src/executors/module-federation-ssr-dev-server/module-federation-ssr-dev-server.impl.js
CHANGED
|
@@ -35,8 +35,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
36
|
exports.moduleFederationSsrDevServerExecutor = moduleFederationSsrDevServerExecutor;
|
|
37
37
|
const devkit_1 = require("@nx/devkit");
|
|
38
|
-
const
|
|
39
|
-
const rxjs_for_await_1 = require("@nx/devkit/src/utils/rxjs-for-await");
|
|
38
|
+
const internal_1 = require("@nx/devkit/internal");
|
|
40
39
|
const utils_1 = require("@nx/module-federation/src/executors/utils");
|
|
41
40
|
const wait_for_port_open_1 = require("@nx/web/src/utils/wait-for-port-open");
|
|
42
41
|
const fs_1 = require("fs");
|
|
@@ -67,7 +66,7 @@ async function* moduleFederationSsrDevServerExecutor(schema, context) {
|
|
|
67
66
|
const options = (0, normalize_options_1.normalizeOptions)(schema);
|
|
68
67
|
(0, builder_package_1.assertBuilderPackageIsInstalled)('@angular-devkit/build-angular');
|
|
69
68
|
const { executeSSRDevServerBuilder } = await Promise.resolve().then(() => __importStar(require('@angular-devkit/build-angular')));
|
|
70
|
-
const currIter = (0,
|
|
69
|
+
const currIter = (0, internal_1.eachValueFrom)(executeSSRDevServerBuilder(options, await (0, ngcli_adapter_1.createBuilderContext)({
|
|
71
70
|
builderName: '@nx/angular:webpack-server',
|
|
72
71
|
description: 'Build a ssr application',
|
|
73
72
|
optionSchema: require('../../builders/webpack-server/schema.json'),
|
|
@@ -93,11 +92,11 @@ async function* moduleFederationSsrDevServerExecutor(schema, context) {
|
|
|
93
92
|
}
|
|
94
93
|
(0, module_federation_1.validateDevRemotes)({ devRemotes: options.devRemotes }, workspaceProjects);
|
|
95
94
|
const { remotes, staticRemotesIter, devRemoteIters } = await (0, utils_1.startRemoteIterators)(options, context, start_dev_remotes_1.startRemotes, pathToManifestFile, 'angular', true);
|
|
96
|
-
const removeBaseUrlEmission = (iter) => (0,
|
|
95
|
+
const removeBaseUrlEmission = (iter) => (0, internal_1.mapAsyncIterable)(iter, (v) => ({
|
|
97
96
|
...v,
|
|
98
97
|
baseUrl: undefined,
|
|
99
98
|
}));
|
|
100
|
-
const combined = (0,
|
|
99
|
+
const combined = (0, internal_1.combineAsyncIterables)(removeBaseUrlEmission(staticRemotesIter), ...(devRemoteIters ? devRemoteIters.map(removeBaseUrlEmission) : []), (0, internal_1.createAsyncIterable)(async ({ next, done }) => {
|
|
101
100
|
if (!options.isInitialHost) {
|
|
102
101
|
done();
|
|
103
102
|
return;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ngPackagrLiteExecutor = void 0;
|
|
4
|
-
const
|
|
4
|
+
const internal_1 = require("@nx/js/internal");
|
|
5
5
|
const path_1 = require("path");
|
|
6
6
|
const package_impl_1 = require("../package/package.impl");
|
|
7
7
|
const typescript_1 = require("../utilities/typescript");
|
|
@@ -10,7 +10,7 @@ async function initializeNgPackgrLite(options, context, projectDependencies) {
|
|
|
10
10
|
const ngPackagr = await (0, ng_packagr_1.getNgPackagrInstance)();
|
|
11
11
|
ngPackagr.forProject((0, path_1.resolve)(context.root, options.project));
|
|
12
12
|
if (options.tsConfig) {
|
|
13
|
-
const remappedTsConfigFilePath = (0,
|
|
13
|
+
const remappedTsConfigFilePath = (0, internal_1.createTmpTsConfig)((0, path_1.join)(context.root, options.tsConfig), context.root, context.projectsConfigurations.projects[context.projectName].root, projectDependencies);
|
|
14
14
|
const tsConfig = await (0, typescript_1.parseRemappedTsConfigAndMergeDefaults)(context.root, options.tsConfig, remappedTsConfigFilePath);
|
|
15
15
|
ngPackagr.withTsConfig(tsConfig);
|
|
16
16
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ExecutorContext } from '@nx/devkit';
|
|
2
|
-
import { type DependentBuildableProjectNode } from '@nx/js/
|
|
2
|
+
import { type DependentBuildableProjectNode } from '@nx/js/internal';
|
|
3
3
|
import type { NgPackagr } from 'ng-packagr';
|
|
4
4
|
import type { BuildAngularLibraryExecutorOptions } from './schema';
|
|
5
5
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"package.impl.d.ts","sourceRoot":"","sources":["../../../../../../packages/angular/src/executors/package/package.impl.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAElD,OAAO,EAGL,KAAK,6BAA6B,EACnC,MAAM,
|
|
1
|
+
{"version":3,"file":"package.impl.d.ts","sourceRoot":"","sources":["../../../../../../packages/angular/src/executors/package/package.impl.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAElD,OAAO,EAGL,KAAK,6BAA6B,EACnC,MAAM,iBAAiB,CAAC;AACzB,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAM5C,OAAO,KAAK,EAAE,kCAAkC,EAAE,MAAM,UAAU,CAAC;AA4BnE;;;;GAIG;AACH,wBAAgB,qBAAqB,CACnC,mBAAmB,EAAE,CACnB,OAAO,EAAE,kCAAkC,EAC3C,OAAO,EAAE,eAAe,EACxB,mBAAmB,EAAE,6BAA6B,EAAE,KACjD,OAAO,CAAC,SAAS,CAAC,IAGrB,SAAS,kCAAkC,EAC3C,SAAS,eAAe;;aAgC3B;AAED,eAAO,MAAM,eAAe,YAnCf,kCAAkC,WAClC,eAAe;;YAkC6C,CAAC;AAE1E,eAAe,eAAe,CAAC"}
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.packageExecutor = void 0;
|
|
4
4
|
exports.createLibraryExecutor = createLibraryExecutor;
|
|
5
|
-
const
|
|
6
|
-
const
|
|
5
|
+
const internal_1 = require("@nx/devkit/internal");
|
|
6
|
+
const internal_2 = require("@nx/js/internal");
|
|
7
7
|
const path_1 = require("path");
|
|
8
8
|
const rxjs_1 = require("rxjs");
|
|
9
9
|
const operators_1 = require("rxjs/operators");
|
|
@@ -13,7 +13,7 @@ async function initializeNgPackagr(options, context, projectDependencies) {
|
|
|
13
13
|
const ngPackagr = await (0, ng_packagr_1.getNgPackagrInstance)();
|
|
14
14
|
ngPackagr.forProject((0, path_1.resolve)(context.root, options.project));
|
|
15
15
|
if (options.tsConfig) {
|
|
16
|
-
const remappedTsConfigFilePath = (0,
|
|
16
|
+
const remappedTsConfigFilePath = (0, internal_2.createTmpTsConfig)((0, path_1.join)(context.root, options.tsConfig), context.root, context.projectsConfigurations.projects[context.projectName].root, projectDependencies);
|
|
17
17
|
const tsConfig = await (0, typescript_1.parseRemappedTsConfigAndMergeDefaults)(context.root, options.tsConfig, remappedTsConfigFilePath);
|
|
18
18
|
ngPackagr.withTsConfig(tsConfig);
|
|
19
19
|
}
|
|
@@ -27,9 +27,9 @@ async function initializeNgPackagr(options, context, projectDependencies) {
|
|
|
27
27
|
function createLibraryExecutor(initializeNgPackagr) {
|
|
28
28
|
return async function* (options, context) {
|
|
29
29
|
options.project ??= (0, path_1.join)(context.projectsConfigurations.projects[context.projectName].root, 'ng-package.json');
|
|
30
|
-
const { dependencies } = (0,
|
|
30
|
+
const { dependencies } = (0, internal_2.calculateProjectBuildableDependencies)(context.taskGraph, context.projectGraph, context.root, context.projectName, context.targetName, context.configurationName);
|
|
31
31
|
if (options.watch) {
|
|
32
|
-
return yield* (0,
|
|
32
|
+
return yield* (0, internal_1.eachValueFrom)((0, rxjs_1.from)(initializeNgPackagr(options, context, dependencies)).pipe((0, operators_1.switchMap)((packagr) => packagr.watch()), (0, operators_1.mapTo)({ success: true })));
|
|
33
33
|
}
|
|
34
34
|
return (0, rxjs_1.from)(initializeNgPackagr(options, context, dependencies))
|
|
35
35
|
.pipe((0, operators_1.switchMap)((packagr) => packagr.build()), (0, operators_1.mapTo)({ success: true }))
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"angular-version-utils.d.ts","sourceRoot":"","sources":["../../../../../../packages/angular/src/executors/utilities/angular-version-utils.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,WAAW,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAAC;AAE7D,wBAAgB,8BAA8B,IAAI,WAAW,GAAG,IAAI,CAEnE;AAED,wBAAgB,8BAA8B,CAC5C,OAAO,EAAE,MAAM,GACd,WAAW,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"angular-version-utils.d.ts","sourceRoot":"","sources":["../../../../../../packages/angular/src/executors/utilities/angular-version-utils.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,WAAW,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAAC;AAE7D,wBAAgB,8BAA8B,IAAI,WAAW,GAAG,IAAI,CAEnE;AAED,wBAAgB,8BAA8B,CAC5C,OAAO,EAAE,MAAM,GACd,WAAW,GAAG,IAAI,CAGpB"}
|
|
@@ -2,17 +2,12 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getInstalledAngularVersionInfo = getInstalledAngularVersionInfo;
|
|
4
4
|
exports.getInstalledPackageVersionInfo = getInstalledPackageVersionInfo;
|
|
5
|
-
const
|
|
5
|
+
const internal_1 = require("@nx/devkit/internal");
|
|
6
6
|
const semver_1 = require("semver");
|
|
7
7
|
function getInstalledAngularVersionInfo() {
|
|
8
8
|
return getInstalledPackageVersionInfo('@angular/core');
|
|
9
9
|
}
|
|
10
10
|
function getInstalledPackageVersionInfo(pkgName) {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
return { major: (0, semver_1.major)(version), version };
|
|
14
|
-
}
|
|
15
|
-
catch {
|
|
16
|
-
return null;
|
|
17
|
-
}
|
|
11
|
+
const version = (0, internal_1.getInstalledPackageVersion)(pkgName);
|
|
12
|
+
return version ? { major: (0, semver_1.major)(version), version } : null;
|
|
18
13
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type ExecutorContext } from '@nx/devkit';
|
|
2
|
-
import { type DependentBuildableProjectNode } from '@nx/js/
|
|
2
|
+
import { type DependentBuildableProjectNode } from '@nx/js/internal';
|
|
3
3
|
export declare function createTmpTsConfigForBuildableLibs(tsConfigPath: string, context: ExecutorContext): {
|
|
4
4
|
tsConfigPath: string;
|
|
5
5
|
dependencies: DependentBuildableProjectNode[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"buildable-libs.d.ts","sourceRoot":"","sources":["../../../../../../packages/angular/src/executors/utilities/buildable-libs.ts"],"names":[],"mappings":"AAAA,OAAO,EAA0B,KAAK,eAAe,EAAE,MAAM,YAAY,CAAC;AAC1E,OAAO,EAGL,KAAK,6BAA6B,EACnC,MAAM,
|
|
1
|
+
{"version":3,"file":"buildable-libs.d.ts","sourceRoot":"","sources":["../../../../../../packages/angular/src/executors/utilities/buildable-libs.ts"],"names":[],"mappings":"AAAA,OAAO,EAA0B,KAAK,eAAe,EAAE,MAAM,YAAY,CAAC;AAC1E,OAAO,EAGL,KAAK,6BAA6B,EACnC,MAAM,iBAAiB,CAAC;AAGzB,wBAAgB,iCAAiC,CAC/C,YAAY,EAAE,MAAM,EACpB,OAAO,EAAE,eAAe;;;EA0BzB"}
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.createTmpTsConfigForBuildableLibs = createTmpTsConfigForBuildableLibs;
|
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
|
5
|
-
const
|
|
5
|
+
const internal_1 = require("@nx/js/internal");
|
|
6
6
|
const path_1 = require("path");
|
|
7
7
|
function createTmpTsConfigForBuildableLibs(tsConfigPath, context) {
|
|
8
8
|
let dependencies;
|
|
9
|
-
const result = (0,
|
|
9
|
+
const result = (0, internal_1.calculateProjectDependencies)(context.projectGraph ?? (0, devkit_1.readCachedProjectGraph)(), context.root, context.projectName, context.targetName, context.configurationName);
|
|
10
10
|
dependencies = result.dependencies;
|
|
11
|
-
const tmpTsConfigPath = (0,
|
|
11
|
+
const tmpTsConfigPath = (0, internal_1.createTmpTsConfig)((0, path_1.join)(context.root, tsConfigPath), context.root, result.target.data.root, dependencies);
|
|
12
12
|
process.env.NX_TSCONFIG_PATH = tmpTsConfigPath;
|
|
13
13
|
const tmpTsConfigPathWithoutWorkspaceRoot = tmpTsConfigPath.replace(context.root, '');
|
|
14
14
|
return { tsConfigPath: tmpTsConfigPathWithoutWorkspaceRoot, dependencies };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"esbuild-extensions.d.ts","sourceRoot":"","sources":["../../../../../../packages/angular/src/executors/utilities/esbuild-extensions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"esbuild-extensions.d.ts","sourceRoot":"","sources":["../../../../../../packages/angular/src/executors/utilities/esbuild-extensions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAMvD,KAAK,MAAM,GAAG,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAC,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,MAAM,CAAC,CAAC;AAE5E,MAAM,MAAM,UAAU,GAAG;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,GAAG,CAAC;CACd,CAAC;AAEF,wBAAsB,WAAW,CAC/B,OAAO,EAAE,MAAM,EAAE,GAAG,UAAU,EAAE,GAAG,SAAS,EAC5C,QAAQ,EAAE,MAAM,GACf,OAAO,CAAC,MAAM,EAAE,CAAC,CAQnB;AAmBD,wBAAsB,cAAc,CAClC,aAAa,EAAE,MAAM,EAAE,GAAG,SAAS,EACnC,QAAQ,EAAE,MAAM,GACf,OAAO,CAAC,GAAG,EAAE,CAAC,CAOhB;AAED,wBAAsB,wBAAwB,CAC5C,wBAAwB,EAAE,MAAM,EAChC,QAAQ,EAAE,MAAM,GACf,OAAO,CAAC,GAAG,CAAC,CAEd"}
|
|
@@ -3,23 +3,16 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.loadPlugins = loadPlugins;
|
|
4
4
|
exports.loadMiddleware = loadMiddleware;
|
|
5
5
|
exports.loadIndexHtmlTransformer = loadIndexHtmlTransformer;
|
|
6
|
-
const internal_1 = require("@nx/js/src/internal");
|
|
7
6
|
const module_loader_1 = require("./module-loader");
|
|
8
7
|
async function loadPlugins(plugins, tsConfig) {
|
|
9
8
|
if (!plugins?.length) {
|
|
10
9
|
return [];
|
|
11
10
|
}
|
|
12
|
-
|
|
13
|
-
try {
|
|
14
|
-
return await Promise.all(plugins.map((plugin) => loadPlugin(plugin)));
|
|
15
|
-
}
|
|
16
|
-
finally {
|
|
17
|
-
cleanupTranspiler();
|
|
18
|
-
}
|
|
11
|
+
return Promise.all(plugins.map((plugin) => loadPlugin(plugin, tsConfig)));
|
|
19
12
|
}
|
|
20
|
-
async function loadPlugin(pluginSpec) {
|
|
13
|
+
async function loadPlugin(pluginSpec, tsConfig) {
|
|
21
14
|
const pluginPath = typeof pluginSpec === 'string' ? pluginSpec : pluginSpec.path;
|
|
22
|
-
let plugin = await (0, module_loader_1.loadModule)(pluginPath);
|
|
15
|
+
let plugin = await (0, module_loader_1.loadModule)(pluginPath, tsConfig);
|
|
23
16
|
if (typeof plugin === 'function') {
|
|
24
17
|
plugin =
|
|
25
18
|
typeof pluginSpec === 'object' ? plugin(pluginSpec.options) : plugin();
|
|
@@ -30,20 +23,8 @@ async function loadMiddleware(middlewareFns, tsConfig) {
|
|
|
30
23
|
if (!middlewareFns?.length) {
|
|
31
24
|
return [];
|
|
32
25
|
}
|
|
33
|
-
|
|
34
|
-
try {
|
|
35
|
-
return await Promise.all(middlewareFns.map((fnPath) => (0, module_loader_1.loadModule)(fnPath)));
|
|
36
|
-
}
|
|
37
|
-
finally {
|
|
38
|
-
cleanupTranspiler();
|
|
39
|
-
}
|
|
26
|
+
return Promise.all(middlewareFns.map((fnPath) => (0, module_loader_1.loadModule)(fnPath, tsConfig)));
|
|
40
27
|
}
|
|
41
28
|
async function loadIndexHtmlTransformer(indexHtmlTransformerPath, tsConfig) {
|
|
42
|
-
|
|
43
|
-
try {
|
|
44
|
-
return await (0, module_loader_1.loadModule)(indexHtmlTransformerPath);
|
|
45
|
-
}
|
|
46
|
-
finally {
|
|
47
|
-
cleanupTranspiler();
|
|
48
|
-
}
|
|
29
|
+
return (0, module_loader_1.loadModule)(indexHtmlTransformerPath, tsConfig);
|
|
49
30
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare function loadModule<T = any>(path: string): Promise<T>;
|
|
1
|
+
export declare function loadModule<T = any>(path: string, tsConfig?: string): Promise<T>;
|
|
2
2
|
/**
|
|
3
3
|
* This uses a dynamic import to load a module which may be ESM.
|
|
4
4
|
* CommonJS code can load ESM code via a dynamic import. Unfortunately, TypeScript
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"module-loader.d.ts","sourceRoot":"","sources":["../../../../../../packages/angular/src/executors/utilities/module-loader.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"module-loader.d.ts","sourceRoot":"","sources":["../../../../../../packages/angular/src/executors/utilities/module-loader.ts"],"names":[],"mappings":"AAIA,wBAAsB,UAAU,CAAC,CAAC,GAAG,GAAG,EACtC,IAAI,EAAE,MAAM,EACZ,QAAQ,CAAC,EAAE,MAAM,GAChB,OAAO,CAAC,CAAC,CAAC,CA+BZ;AAOD;;;;;;;;;;;GAWG;AACH,wBAAgB,aAAa,CAAC,CAAC,GAAG,GAAG,EAAE,UAAU,EAAE,MAAM,GAAG,GAAG,GAAG,OAAO,CAAC,CAAC,CAAC,CAO3E"}
|
|
@@ -4,29 +4,33 @@ exports.loadModule = loadModule;
|
|
|
4
4
|
exports.loadEsmModule = loadEsmModule;
|
|
5
5
|
const path_1 = require("path");
|
|
6
6
|
const node_url_1 = require("node:url");
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
const internal_1 = require("@nx/js/internal");
|
|
8
|
+
async function loadModule(path, tsConfig) {
|
|
9
|
+
const ext = (0, path_1.extname)(path);
|
|
10
|
+
if (ext === '.mjs') {
|
|
11
|
+
const result = await loadEsmModule((0, node_url_1.pathToFileURL)(path));
|
|
12
|
+
return result.default ?? result;
|
|
13
|
+
}
|
|
14
|
+
if (ext === '.cjs') {
|
|
15
|
+
const result = (0, internal_1.requireWithTsconfigFallback)(path, tsConfig);
|
|
16
|
+
return result.default ?? result;
|
|
17
|
+
}
|
|
18
|
+
const isTs = ext === '.ts' || ext === '.cts' || ext === '.mts';
|
|
19
|
+
try {
|
|
20
|
+
const result = isTs && tsConfig
|
|
21
|
+
? (0, internal_1.loadTsFile)(path, tsConfig)
|
|
22
|
+
: (0, internal_1.requireWithTsconfigFallback)(path, tsConfig);
|
|
23
|
+
return result.default ?? result;
|
|
24
|
+
}
|
|
25
|
+
catch (e) {
|
|
26
|
+
// ERR_REQUIRE_ESM (legacy) and ERR_REQUIRE_ASYNC_MODULE (Node 22.12+,
|
|
27
|
+
// ESM with top-level await) both indicate the module must be loaded via
|
|
28
|
+
// dynamic import.
|
|
29
|
+
if (e.code === 'ERR_REQUIRE_ESM' || e.code === 'ERR_REQUIRE_ASYNC_MODULE') {
|
|
10
30
|
const result = await loadEsmModule((0, node_url_1.pathToFileURL)(path));
|
|
11
31
|
return result.default ?? result;
|
|
12
32
|
}
|
|
13
|
-
|
|
14
|
-
const result = require(path);
|
|
15
|
-
return result.default ?? result;
|
|
16
|
-
}
|
|
17
|
-
default:
|
|
18
|
-
// it can be CommonJS or ESM, try both
|
|
19
|
-
try {
|
|
20
|
-
const result = require(path);
|
|
21
|
-
return result.default ?? result;
|
|
22
|
-
}
|
|
23
|
-
catch (e) {
|
|
24
|
-
if (e.code === 'ERR_REQUIRE_ESM') {
|
|
25
|
-
const result = await loadEsmModule((0, node_url_1.pathToFileURL)(path));
|
|
26
|
-
return result.default ?? result;
|
|
27
|
-
}
|
|
28
|
-
throw e;
|
|
29
|
-
}
|
|
33
|
+
throw e;
|
|
30
34
|
}
|
|
31
35
|
}
|
|
32
36
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-linting.d.ts","sourceRoot":"","sources":["../../../../../../packages/angular/src/generators/add-linting/add-linting.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"add-linting.d.ts","sourceRoot":"","sources":["../../../../../../packages/angular/src/generators/add-linting/add-linting.ts"],"names":[],"mappings":"AACA,OAAO,EAIL,KAAK,iBAAiB,EACtB,KAAK,IAAI,EACV,MAAM,YAAY,CAAC;AAepB,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,UAAU,CAAC;AAE1D,wBAAsB,mBAAmB,CACvC,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,yBAAyB,GACjC,OAAO,CAAC,iBAAiB,CAAC,CA8I5B;AAED,eAAe,mBAAmB,CAAC"}
|