@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.
- package/migrations.json +70 -0
- package/package.json +9 -9
- package/plugins/component-testing.js +1 -2
- package/src/builders/dev-server/dev-server.impl.js +1 -2
- package/src/builders/dev-server/lib/normalize-options.js +1 -2
- package/src/builders/dev-server/lib/validate-options.js +5 -2
- package/src/builders/dev-server/schema.d.ts +1 -0
- package/src/builders/dev-server/schema.json +11 -0
- package/src/builders/module-federation-dev-ssr/module-federation-dev-ssr.impl.js +1 -2
- package/src/builders/utilities/buildable-libs.js +1 -2
- package/src/builders/utilities/module-federation.js +4 -5
- package/src/builders/utilities/webpack.js +3 -4
- package/src/builders/webpack-browser/webpack-browser.impl.js +1 -2
- package/src/builders/webpack-server/webpack-server.impl.js +1 -2
- package/src/executors/application/application.impl.js +1 -1
- package/src/executors/application/utils/validate-options.js +1 -2
- package/src/executors/browser-esbuild/browser-esbuild.impl.js +1 -1
- package/src/executors/delegate-build/delegate-build.impl.js +1 -2
- package/src/executors/extract-i18n/extract-i18n.impl.js +1 -1
- package/src/executors/module-federation-dev-server/lib/build-static-remotes.js +1 -2
- package/src/executors/module-federation-dev-server/lib/normalize-options.js +1 -2
- package/src/executors/module-federation-dev-server/lib/parse-static-remotes-config.js +1 -2
- package/src/executors/module-federation-dev-server/lib/start-dev-remotes.js +1 -2
- package/src/executors/module-federation-dev-server/lib/start-static-remotes-file-server.js +1 -2
- package/src/executors/module-federation-dev-server/module-federation-dev-server.impl.js +1 -2
- package/src/executors/ng-packagr-lite/ng-packagr-adjustments/ng-packagr.js +1 -2
- package/src/executors/ng-packagr-lite/ng-packagr-adjustments/pre-v17/ngc/compile-source-files.js +1 -2
- package/src/executors/package/ng-packagr-adjustments/ng-packagr.js +1 -2
- package/src/executors/package/ng-packagr-adjustments/ngc/compile-source-files.js +1 -2
- package/src/executors/package/ng-packagr-adjustments/utils/ng-compiler-cli.js +1 -2
- package/src/executors/package/package.impl.js +2 -2
- package/src/executors/utilities/angular-version-utils.js +2 -3
- package/src/executors/utilities/buildable-libs.js +1 -2
- package/src/executors/utilities/esbuild-extensions.js +3 -4
- package/src/executors/utilities/module-loader.js +2 -3
- package/src/executors/utilities/ng-packagr/tailwindcss.js +3 -4
- package/src/executors/utilities/patch-builder-context.js +1 -2
- package/src/executors/utilities/typescript.js +1 -2
- package/src/generators/add-linting/add-linting.js +1 -2
- package/src/generators/add-linting/lib/add-angular-eslint-dependencies.js +1 -2
- package/src/generators/add-linting/lib/buildable-project.js +1 -2
- package/src/generators/add-linting/lib/create-eslint-configuration.d.ts +24 -24
- package/src/generators/add-linting/lib/create-eslint-configuration.js +2 -2
- package/src/generators/application/application.js +2 -3
- package/src/generators/application/files/base/tsconfig.json__tpl__ +2 -2
- package/src/generators/application/files/ng-module/src/app/app.component.spec.ts__tpl__ +4 -3
- package/src/generators/application/files/standalone-components/src/app/app.component.spec.ts__tpl__ +4 -3
- package/src/generators/application/lib/add-e2e.js +1 -2
- package/src/generators/application/lib/add-linting.js +1 -2
- package/src/generators/application/lib/add-proxy-config.js +1 -2
- package/src/generators/application/lib/add-unit-test-runner.js +1 -2
- package/src/generators/application/lib/create-files.js +8 -5
- package/src/generators/application/lib/create-project.js +1 -2
- package/src/generators/application/lib/enable-strict-type-checking.js +1 -2
- package/src/generators/application/lib/normalize-options.js +1 -2
- package/src/generators/application/lib/set-app-strict-default.js +1 -2
- package/src/generators/application/lib/set-generator-defaults.js +1 -2
- package/src/generators/application/lib/update-editor-tsconfig.js +1 -2
- package/src/generators/component/component.js +2 -3
- package/src/generators/component/lib/component.js +1 -2
- package/src/generators/component/lib/module.js +1 -2
- package/src/generators/component/lib/normalize-options.js +1 -2
- package/src/generators/component/lib/set-generator-defaults.js +1 -2
- package/src/generators/component-cypress-spec/component-cypress-spec.js +1 -2
- package/src/generators/component-cypress-spec/lib/get-args-default-value.js +1 -2
- package/src/generators/component-cypress-spec/lib/get-component-selector.js +1 -2
- package/src/generators/component-story/component-story.js +1 -2
- package/src/generators/component-test/component-test.js +1 -2
- package/src/generators/convert-to-application-executor/convert-to-application-executor.js +1 -2
- package/src/generators/convert-to-with-mf/convert-to-with-mf.js +1 -2
- package/src/generators/convert-to-with-mf/lib/check-name-matches.js +1 -2
- package/src/generators/convert-to-with-mf/lib/check-shared-npm-packages.js +1 -2
- package/src/generators/convert-to-with-mf/lib/get-webpack-config-path.js +1 -2
- package/src/generators/convert-to-with-mf/lib/is-host-remote-config.js +3 -4
- package/src/generators/convert-to-with-mf/lib/parse-ast-webpack-config.js +1 -2
- package/src/generators/convert-to-with-mf/lib/write-new-webpack-config.js +1 -2
- package/src/generators/cypress-component-configuration/cypress-component-configuration.js +2 -3
- package/src/generators/directive/directive.js +1 -2
- package/src/generators/directive/lib/normalize-options.js +1 -2
- package/src/generators/federate-module/federate-module.js +1 -2
- package/src/generators/federate-module/lib/add-file-to-remote-tsconfig.js +1 -2
- package/src/generators/federate-module/lib/add-path-to-exposes.js +1 -2
- package/src/generators/federate-module/lib/add-path-to-ts-config.js +1 -2
- package/src/generators/federate-module/lib/add-remote.js +1 -2
- package/src/generators/federate-module/lib/check-remote-exists.js +1 -2
- package/src/generators/host/host.js +2 -3
- package/src/generators/host/lib/update-ssr-setup.js +1 -2
- package/src/generators/init/init.js +1 -2
- package/src/generators/library/files/base/tsconfig.json__tpl__ +2 -2
- package/src/generators/library/lib/add-children.js +1 -2
- package/src/generators/library/lib/add-load-children.js +1 -2
- package/src/generators/library/lib/add-module.js +1 -2
- package/src/generators/library/lib/add-project.js +1 -2
- package/src/generators/library/lib/add-standalone-component.js +1 -2
- package/src/generators/library/lib/create-files.js +3 -2
- package/src/generators/library/lib/enable-strict-type-checking.js +2 -3
- package/src/generators/library/lib/normalize-options.js +1 -2
- package/src/generators/library/lib/set-generator-defaults.js +1 -2
- package/src/generators/library/lib/update-lib-package-npm-scope.js +1 -2
- package/src/generators/library/lib/update-tsconfig.js +1 -2
- package/src/generators/library/library.js +2 -3
- package/src/generators/library-secondary-entry-point/lib/add-files.js +1 -2
- package/src/generators/library-secondary-entry-point/lib/add-path-mapping.js +1 -2
- package/src/generators/library-secondary-entry-point/lib/normalize-options.js +1 -2
- package/src/generators/library-secondary-entry-point/lib/update-tsconfig-included-files.js +1 -2
- package/src/generators/library-secondary-entry-point/library-secondary-entry-point.js +1 -2
- package/src/generators/move/lib/update-module-name.js +1 -2
- package/src/generators/move/lib/update-ng-package.js +1 -2
- package/src/generators/move/lib/update-secondary-entry-points.js +1 -2
- package/src/generators/move/move-impl.js +1 -2
- package/src/generators/move/move.js +2 -3
- package/src/generators/ng-add/migrate-from-angular-cli.js +1 -2
- package/src/generators/ng-add/ng-add.js +1 -2
- package/src/generators/ng-add/utilities/dependencies.js +1 -2
- package/src/generators/ng-add/utilities/format-files-task.js +1 -2
- package/src/generators/ng-add/utilities/projects.js +2 -3
- package/src/generators/ng-add/utilities/validation-logging.js +2 -3
- package/src/generators/ng-add/utilities/workspace.js +13 -14
- package/src/generators/ngrx/lib/add-exports-barrel.js +1 -2
- package/src/generators/ngrx/lib/add-imports-to-module.js +1 -2
- package/src/generators/ngrx/lib/add-ngrx-to-package-json.js +1 -2
- package/src/generators/ngrx/lib/generate-files.js +1 -2
- package/src/generators/ngrx/lib/normalize-options.js +1 -2
- package/src/generators/ngrx/lib/validate-options.js +1 -2
- package/src/generators/ngrx/ngrx.js +1 -2
- package/src/generators/ngrx-feature-store/lib/add-exports-barrel.js +1 -2
- package/src/generators/ngrx-feature-store/lib/add-imports.js +1 -2
- package/src/generators/ngrx-feature-store/lib/add-ngrx-to-package-json.js +1 -2
- package/src/generators/ngrx-feature-store/lib/generate-files.js +1 -2
- package/src/generators/ngrx-feature-store/lib/normalize-options.js +1 -2
- package/src/generators/ngrx-feature-store/lib/validate-options.js +1 -2
- package/src/generators/ngrx-feature-store/ngrx-feature-store.js +1 -2
- package/src/generators/ngrx-root-store/lib/add-imports.js +1 -2
- package/src/generators/ngrx-root-store/lib/add-ngrx-to-package-json.js +1 -2
- package/src/generators/ngrx-root-store/lib/normalize-options.js +1 -2
- package/src/generators/ngrx-root-store/lib/validate-options.js +1 -2
- package/src/generators/ngrx-root-store/ngrx-root-store.js +1 -2
- package/src/generators/pipe/lib/normalize-options.js +1 -2
- package/src/generators/pipe/pipe.js +1 -2
- package/src/generators/remote/lib/find-next-available-port.js +1 -2
- package/src/generators/remote/lib/update-ssr-setup.js +1 -2
- package/src/generators/remote/remote.js +2 -3
- package/src/generators/scam/lib/convert-component-to-scam.js +1 -2
- package/src/generators/scam/lib/normalize-options.js +1 -2
- package/src/generators/scam/scam.js +1 -2
- package/src/generators/scam-directive/lib/convert-directive-to-scam.js +1 -2
- package/src/generators/scam-directive/lib/normalize-options.js +1 -2
- package/src/generators/scam-directive/scam-directive.js +1 -2
- package/src/generators/scam-pipe/lib/convert-pipe-to-scam.js +1 -2
- package/src/generators/scam-pipe/lib/normalize-options.js +1 -2
- package/src/generators/scam-pipe/scam-pipe.js +1 -2
- package/src/generators/scam-to-standalone/lib/convert-scam-to-standalone.js +1 -2
- package/src/generators/scam-to-standalone/lib/get-component-data-from-ast.js +1 -2
- package/src/generators/scam-to-standalone/lib/get-module-metadata-from-ast.js +1 -2
- package/src/generators/scam-to-standalone/lib/get-target-project.js +1 -2
- package/src/generators/scam-to-standalone/lib/replace-module-usages-with-component.js +1 -2
- package/src/generators/scam-to-standalone/lib/selector-exists-in-ast.js +1 -2
- package/src/generators/scam-to-standalone/lib/verify-is-inline-scam.js +1 -2
- package/src/generators/scam-to-standalone/lib/verify-module-is-scam.js +1 -2
- package/src/generators/scam-to-standalone/scam-to-standalone.js +1 -2
- package/src/generators/setup-mf/files/host-files/app.component.spec.ts__tmpl__ +8 -5
- package/src/generators/setup-mf/lib/add-cypress-workaround.js +1 -2
- package/src/generators/setup-mf/lib/add-remote-entry.js +1 -2
- package/src/generators/setup-mf/lib/add-remote-to-host.js +3 -4
- package/src/generators/setup-mf/lib/change-build-target.js +1 -2
- package/src/generators/setup-mf/lib/fix-bootstrap.js +1 -2
- package/src/generators/setup-mf/lib/generate-config.js +1 -2
- package/src/generators/setup-mf/lib/get-remotes-with-ports.js +1 -2
- package/src/generators/setup-mf/lib/normalize-options.js +1 -2
- package/src/generators/setup-mf/lib/remove-dead-code-from-remote.js +1 -2
- package/src/generators/setup-mf/lib/setup-host-if-dynamic.js +1 -2
- package/src/generators/setup-mf/lib/setup-serve-target.js +1 -2
- package/src/generators/setup-mf/lib/setup-tspath-for-remote.js +1 -2
- package/src/generators/setup-mf/lib/update-host-app-routes.d.ts +2 -2
- package/src/generators/setup-mf/lib/update-host-app-routes.js +5 -10
- package/src/generators/setup-mf/lib/update-tsconfig.js +1 -2
- package/src/generators/setup-mf/setup-mf.js +1 -2
- package/src/generators/setup-ssr/lib/add-dependencies.js +1 -2
- package/src/generators/setup-ssr/lib/add-hydration.js +1 -2
- package/src/generators/setup-ssr/lib/add-server-file.js +1 -2
- package/src/generators/setup-ssr/lib/generate-files.js +1 -2
- package/src/generators/setup-ssr/lib/generate-server-ts-config.js +2 -3
- package/src/generators/setup-ssr/lib/normalize-options.js +1 -2
- package/src/generators/setup-ssr/lib/set-router-initial-navigation.js +1 -2
- package/src/generators/setup-ssr/lib/update-project-config.js +2 -3
- package/src/generators/setup-ssr/lib/validate-options.js +1 -2
- package/src/generators/setup-ssr/setup-ssr.js +1 -2
- package/src/generators/setup-tailwind/lib/add-tailwind-config-path-to-project.js +1 -2
- package/src/generators/setup-tailwind/lib/add-tailwind-config.js +1 -2
- package/src/generators/setup-tailwind/lib/add-tailwind-required-packages.js +1 -2
- package/src/generators/setup-tailwind/lib/detect-tailwind-installed-version.js +1 -2
- package/src/generators/setup-tailwind/lib/normalize-options.js +1 -2
- package/src/generators/setup-tailwind/lib/update-application-styles.js +1 -2
- package/src/generators/setup-tailwind/setup-tailwind.js +1 -2
- package/src/generators/stories/lib/get-e2e-project.js +1 -2
- package/src/generators/stories/stories.js +1 -2
- package/src/generators/storybook-configuration/lib/assert-compatible-storybook-version.js +1 -2
- package/src/generators/storybook-configuration/lib/generate-stories.js +1 -2
- package/src/generators/storybook-configuration/lib/generate-storybook-configuration.js +1 -2
- package/src/generators/storybook-configuration/lib/validate-options.js +1 -2
- package/src/generators/storybook-configuration/storybook-configuration.js +1 -2
- package/src/generators/utils/add-jest.js +1 -2
- package/src/generators/utils/add-mf-env-to-inputs.js +1 -2
- package/src/generators/utils/dependencies.js +1 -2
- package/src/generators/utils/ensure-angular-dependencies.js +1 -2
- package/src/generators/utils/entry-point.js +1 -2
- package/src/generators/utils/export-scam.js +1 -2
- package/src/generators/utils/find-module.js +2 -3
- package/src/generators/utils/insert-ngmodule-import.js +2 -3
- package/src/generators/utils/path.js +1 -2
- package/src/generators/utils/project.js +1 -2
- package/src/generators/utils/selector.js +2 -3
- package/src/generators/utils/storybook-ast/component-info.js +3 -4
- package/src/generators/utils/storybook-ast/entry-point.js +1 -2
- package/src/generators/utils/storybook-ast/module-info.js +2 -3
- package/src/generators/utils/storybook-ast/storybook-inputs.js +4 -5
- package/src/generators/utils/storybook-ast/tree-utilities.js +1 -2
- package/src/generators/utils/testing.js +5 -6
- package/src/generators/utils/update-app-editor-tsconfig-excluded-files.js +1 -2
- package/src/generators/utils/update-project-root-tsconfig.js +2 -2
- package/src/generators/utils/validations.js +1 -2
- package/src/generators/utils/version-utils.js +6 -7
- package/src/generators/web-worker/lib/add-snippet.js +1 -2
- package/src/generators/web-worker/lib/normalize-options.js +1 -2
- package/src/generators/web-worker/web-worker.js +1 -2
- package/src/migrations/update-14-2-0/remove-show-circular-dependencies-option.js +1 -1
- package/src/migrations/update-14-2-0/update-angular-cli.js +1 -1
- package/src/migrations/update-14-2-0/update-libraries-secondary-entrypoints.js +1 -1
- package/src/migrations/update-14-2-0/update-ngcc-target.js +1 -1
- package/src/migrations/update-14-2-0/update-router-initial-navigation.js +6 -3
- package/src/migrations/update-14-2-0/update-tsconfig-target.js +2 -2
- package/src/migrations/update-14-5-0/migrate-mfe-to-mf.js +4 -5
- package/src/migrations/update-14-5-2/update-angular-cli.js +1 -1
- package/src/migrations/update-14-6-0/update-angular-cli.js +1 -1
- package/src/migrations/update-14-8-0/rename-webpack-server.js +1 -1
- package/src/migrations/update-15-0-0/add-karma-inputs.js +1 -1
- package/src/migrations/update-15-0-0/switch-to-jasmine-marbles.js +1 -1
- package/src/migrations/update-15-2-0/remove-browserlist-config.js +1 -1
- package/src/migrations/update-15-2-0/remove-platform-server-exports.js +1 -1
- package/src/migrations/update-15-2-0/update-angular-cli.js +1 -1
- package/src/migrations/update-15-2-0/update-karma-main-file.js +1 -1
- package/src/migrations/update-15-2-0/update-typescript-target.js +1 -1
- package/src/migrations/update-15-2-0/update-workspace-config.js +1 -1
- package/src/migrations/update-15-5-0/update-angular-cli.js +1 -1
- package/src/migrations/update-15-7-0/install-required-packages.js +1 -1
- package/src/migrations/update-15-8-0/update-angular-cli.js +1 -1
- package/src/migrations/update-15-9-0/update-file-server-executor.js +1 -1
- package/src/migrations/update-15-9-0/update-testing-tsconfig.js +1 -2
- package/src/migrations/update-16-0-0/remove-karma-defaults.js +1 -1
- package/src/migrations/update-16-0-0/remove-library-generator-simple-module-name-option.js +1 -1
- package/src/migrations/update-16-0-0/remove-protractor-defaults.js +1 -1
- package/src/migrations/update-16-0-0-add-nx-packages/update-16-0-0-add-nx-packages.js +1 -1
- package/src/migrations/update-16-1-0/extract-standalone-config-from-bootstrap.js +1 -1
- package/src/migrations/update-16-1-0/remove-ngcc-invocation.js +1 -1
- package/src/migrations/update-16-1-0/remove-render-module-platform-server-exports.js +1 -1
- package/src/migrations/update-16-1-0/update-angular-cli.js +1 -1
- package/src/migrations/update-16-1-0/update-server-executor-config.js +1 -1
- package/src/migrations/update-16-2-0/switch-data-persistence-operators-imports-to-ngrx-router-store.js +1 -1
- package/src/migrations/update-16-4-0/rename-angular-eslint-accesibility-rules.js +1 -1
- package/src/migrations/update-16-4-0/update-angular-cli.js +1 -1
- package/src/migrations/update-16-6-0/explicitly-set-projects-to-update-buildable-deps.js +1 -1
- package/src/migrations/update-16-7-0/update-angular-cli.js +1 -1
- package/src/migrations/update-17-1-0/browser-target-to-build-target.js +1 -1
- package/src/migrations/update-17-1-0/replace-nguniversal-builders.js +1 -1
- package/src/migrations/update-17-1-0/replace-nguniversal-engines.js +1 -1
- package/src/migrations/update-17-1-0/update-angular-cli.js +1 -1
- package/src/migrations/update-17-1-0/update-zone-js-deep-import.js +1 -1
- package/src/migrations/update-17-2-0/rename-webpack-dev-server.js +1 -1
- package/src/migrations/update-17-3-0/add-autoprefixer-dependency.js +1 -1
- package/src/migrations/update-17-3-0/add-browser-sync-dependency.js +1 -1
- package/src/migrations/update-17-3-0/update-angular-cli.js +1 -1
- package/src/migrations/update-18-0-0/add-mf-env-var-to-target-defaults.js +1 -1
- package/src/migrations/update-18-1-0/update-angular-cli.js +1 -1
- package/src/migrations/update-18-1-1/fix-target-defaults-inputs.js +1 -1
- package/src/migrations/update-18-2-0/update-angular-cli.js +1 -1
- package/src/migrations/update-19-1-0/update-angular-cli.js +1 -1
- package/src/migrations/update-19-2-1/add-typescript-eslint-utils.d.ts +1 -1
- package/src/migrations/update-19-2-1/add-typescript-eslint-utils.js +2 -2
- package/src/migrations/update-19-5-0/update-angular-cli.d.ts +3 -0
- package/src/migrations/update-19-5-0/update-angular-cli.js +23 -0
- package/src/migrations/utils/projects.js +1 -2
- package/src/utils/cli-config-utils.js +1 -2
- package/src/utils/get-mf-projects.js +1 -2
- package/src/utils/mf/utils.js +4 -4
- package/src/utils/mf/with-module-federation-ssr.js +1 -2
- package/src/utils/mf/with-module-federation.js +1 -2
- package/src/utils/nx-devkit/ast-utils.js +23 -24
- package/src/utils/nx-devkit/route-utils.js +2 -3
- package/src/utils/nx-devkit/testing.js +4 -5
- package/src/utils/targets.js +1 -2
- package/src/utils/version-utils.js +2 -3
- package/src/utils/versions.d.ts +4 -4
- package/src/utils/versions.js +4 -4
- package/tailwind.js +1 -2
@@ -1,6 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
3
|
+
exports.extractTsConfigBase = void 0;
|
4
|
+
exports.updateProjectRootTsConfig = updateProjectRootTsConfig;
|
4
5
|
const devkit_1 = require("@nx/devkit");
|
5
6
|
const js_1 = require("@nx/js");
|
6
7
|
var js_2 = require("@nx/js");
|
@@ -23,4 +24,3 @@ function updateProjectRootTsConfig(host, projectRoot, relativePathToRootTsConfig
|
|
23
24
|
return json;
|
24
25
|
});
|
25
26
|
}
|
26
|
-
exports.updateProjectRootTsConfig = updateProjectRootTsConfig;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.validateProject =
|
3
|
+
exports.validateProject = validateProject;
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
5
5
|
function validateProject(tree, projectName) {
|
6
6
|
const projects = (0, devkit_1.getProjects)(tree);
|
@@ -8,4 +8,3 @@ function validateProject(tree, projectName) {
|
|
8
8
|
throw new Error(`Project "${projectName}" does not exist! Please provide an existing project name.`);
|
9
9
|
}
|
10
10
|
}
|
11
|
-
exports.validateProject = validateProject;
|
@@ -1,6 +1,11 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
3
|
+
exports.getInstalledAngularVersion = getInstalledAngularVersion;
|
4
|
+
exports.getInstalledAngularMajorVersion = getInstalledAngularMajorVersion;
|
5
|
+
exports.getInstalledAngularVersionInfo = getInstalledAngularVersionInfo;
|
6
|
+
exports.getInstalledPackageVersion = getInstalledPackageVersion;
|
7
|
+
exports.getInstalledPackageVersionInfo = getInstalledPackageVersionInfo;
|
8
|
+
exports.versions = versions;
|
4
9
|
const tslib_1 = require("tslib");
|
5
10
|
const devkit_1 = require("@nx/devkit");
|
6
11
|
const semver_1 = require("semver");
|
@@ -17,11 +22,9 @@ function getInstalledAngularVersion(tree) {
|
|
17
22
|
}
|
18
23
|
return ((0, semver_1.clean)(installedAngularVersion) ?? (0, semver_1.coerce)(installedAngularVersion).version);
|
19
24
|
}
|
20
|
-
exports.getInstalledAngularVersion = getInstalledAngularVersion;
|
21
25
|
function getInstalledAngularMajorVersion(tree) {
|
22
26
|
return (0, semver_1.major)(getInstalledAngularVersion(tree));
|
23
27
|
}
|
24
|
-
exports.getInstalledAngularMajorVersion = getInstalledAngularMajorVersion;
|
25
28
|
function getInstalledAngularVersionInfo(tree) {
|
26
29
|
const installedVersion = getInstalledAngularVersion(tree);
|
27
30
|
return {
|
@@ -29,18 +32,15 @@ function getInstalledAngularVersionInfo(tree) {
|
|
29
32
|
major: (0, semver_1.major)(installedVersion),
|
30
33
|
};
|
31
34
|
}
|
32
|
-
exports.getInstalledAngularVersionInfo = getInstalledAngularVersionInfo;
|
33
35
|
function getInstalledPackageVersion(tree, pkgName) {
|
34
36
|
const { dependencies, devDependencies } = (0, devkit_1.readJson)(tree, 'package.json');
|
35
37
|
const version = dependencies?.[pkgName] ?? devDependencies?.[pkgName];
|
36
38
|
return version;
|
37
39
|
}
|
38
|
-
exports.getInstalledPackageVersion = getInstalledPackageVersion;
|
39
40
|
function getInstalledPackageVersionInfo(tree, pkgName) {
|
40
41
|
const version = getInstalledPackageVersion(tree, pkgName);
|
41
42
|
return version ? { major: (0, semver_1.major)((0, semver_1.coerce)(version)), version } : null;
|
42
43
|
}
|
43
|
-
exports.getInstalledPackageVersionInfo = getInstalledPackageVersionInfo;
|
44
44
|
function versions(tree) {
|
45
45
|
const majorAngularVersion = getInstalledAngularMajorVersion(tree);
|
46
46
|
switch (majorAngularVersion) {
|
@@ -52,4 +52,3 @@ function versions(tree) {
|
|
52
52
|
return latestVersions;
|
53
53
|
}
|
54
54
|
}
|
55
|
-
exports.versions = versions;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.addSnippet =
|
3
|
+
exports.addSnippet = addSnippet;
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
5
5
|
function addSnippet(tree, name, path) {
|
6
6
|
const fileRegExp = new RegExp(`^${name}.*\\.ts`);
|
@@ -30,4 +30,3 @@ function addSnippet(tree, name, path) {
|
|
30
30
|
tree.write(siblingModulePath, (0, devkit_1.stripIndents) `${originalContent}
|
31
31
|
${workerCreationSnippet}`);
|
32
32
|
}
|
33
|
-
exports.addSnippet = addSnippet;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.normalizeOptions =
|
3
|
+
exports.normalizeOptions = normalizeOptions;
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
5
5
|
function normalizeOptions(tree, options) {
|
6
6
|
if (!(0, devkit_1.getProjects)(tree).has(options.project)) {
|
@@ -22,4 +22,3 @@ function normalizeOptions(tree, options) {
|
|
22
22
|
snippet: options.snippet ?? true,
|
23
23
|
};
|
24
24
|
}
|
25
|
-
exports.normalizeOptions = normalizeOptions;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.webWorkerGenerator =
|
3
|
+
exports.webWorkerGenerator = webWorkerGenerator;
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
5
5
|
const lib_1 = require("./lib");
|
6
6
|
const js_1 = require("@nx/js");
|
@@ -30,5 +30,4 @@ async function webWorkerGenerator(tree, rawOptions) {
|
|
30
30
|
await (0, devkit_1.formatFiles)(tree);
|
31
31
|
}
|
32
32
|
}
|
33
|
-
exports.webWorkerGenerator = webWorkerGenerator;
|
34
33
|
exports.default = webWorkerGenerator;
|
@@ -1,5 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.default = default_1;
|
3
4
|
const devkit_1 = require("@nx/devkit");
|
4
5
|
const executor_options_utils_1 = require("@nx/devkit/src/generators/executor-options-utils");
|
5
6
|
const executors = [
|
@@ -20,4 +21,3 @@ async function default_1(tree) {
|
|
20
21
|
});
|
21
22
|
await (0, devkit_1.formatFiles)(tree);
|
22
23
|
}
|
23
|
-
exports.default = default_1;
|
@@ -1,5 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.default = default_1;
|
3
4
|
const devkit_1 = require("@nx/devkit");
|
4
5
|
const angularCliVersion = '~14.0.0';
|
5
6
|
async function default_1(tree) {
|
@@ -19,4 +20,3 @@ async function default_1(tree) {
|
|
19
20
|
await (0, devkit_1.formatFiles)(tree);
|
20
21
|
}
|
21
22
|
}
|
22
|
-
exports.default = default_1;
|
@@ -1,5 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.default = default_1;
|
3
4
|
const devkit_1 = require("@nx/devkit");
|
4
5
|
const path_1 = require("path");
|
5
6
|
const libraryExecutors = [
|
@@ -31,4 +32,3 @@ async function default_1(tree) {
|
|
31
32
|
}
|
32
33
|
await (0, devkit_1.formatFiles)(tree);
|
33
34
|
}
|
34
|
-
exports.default = default_1;
|
@@ -1,5 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.default = default_1;
|
3
4
|
const devkit_1 = require("@nx/devkit");
|
4
5
|
async function default_1(tree) {
|
5
6
|
let shouldFormat = false;
|
@@ -14,4 +15,3 @@ async function default_1(tree) {
|
|
14
15
|
await (0, devkit_1.formatFiles)(tree);
|
15
16
|
}
|
16
17
|
}
|
17
|
-
exports.default = default_1;
|
@@ -1,5 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.default = default_1;
|
3
4
|
const devkit_1 = require("@nx/devkit");
|
4
5
|
const tsquery_1 = require("@phenomnomnominal/tsquery");
|
5
6
|
const typescript_1 = require("typescript");
|
@@ -29,7 +30,6 @@ async function default_1(tree) {
|
|
29
30
|
}
|
30
31
|
await (0, devkit_1.formatFiles)(tree);
|
31
32
|
}
|
32
|
-
exports.default = default_1;
|
33
33
|
function getInitialNavigationAssignment(extraOptionsLiteral) {
|
34
34
|
for (const prop of extraOptionsLiteral.properties) {
|
35
35
|
if ((0, typescript_1.isPropertyAssignment)(prop) &&
|
@@ -62,8 +62,11 @@ function getRouterModuleForRootCall(sourceFile) {
|
|
62
62
|
}
|
63
63
|
function isRouterModuleForRoot(node) {
|
64
64
|
// make sure is not an outer call expression (NgModule call)
|
65
|
-
|
66
|
-
|
65
|
+
return ((0, typescript_1.isPropertyAccessExpression)(node.expression) &&
|
66
|
+
(0, typescript_1.isIdentifier)(node.expression.expression) &&
|
67
|
+
node.expression.expression.text === 'RouterModule' &&
|
68
|
+
(0, typescript_1.isIdentifier)(node.expression.name) &&
|
69
|
+
node.expression.name.text === 'forRoot');
|
67
70
|
}
|
68
71
|
function needsMigration(node) {
|
69
72
|
return ((0, typescript_1.isStringLiteralLike)(node.initializer) && node.initializer.text === 'enabled');
|
@@ -1,5 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.default = default_1;
|
3
4
|
const devkit_1 = require("@nx/devkit");
|
4
5
|
const devkit_2 = require("@nx/devkit");
|
5
6
|
const tsquery_1 = require("@phenomnomnominal/tsquery");
|
@@ -33,7 +34,6 @@ async function default_1(tree) {
|
|
33
34
|
}
|
34
35
|
await (0, devkit_2.formatFiles)(tree);
|
35
36
|
}
|
36
|
-
exports.default = default_1;
|
37
37
|
async function collectTsConfigPaths(tree) {
|
38
38
|
const uniqueTsConfigs = new Set([]);
|
39
39
|
const projectGraph = await (0, devkit_2.createProjectGraphAsync)();
|
@@ -119,7 +119,7 @@ function getTsConfigFromJestConfig(tree, jestConfigPath, targetName, projectName
|
|
119
119
|
}
|
120
120
|
const jestConfig = tree.read(jestConfigPath, 'utf-8');
|
121
121
|
const jestConfigAst = tsquery_1.tsquery.ast(jestConfig);
|
122
|
-
const tsJestTsConfigStringLiteral = (0, tsquery_1.tsquery)(jestConfigAst, 'PropertyAssignment:has(Identifier[name=globals]) PropertyAssignment:has(StringLiteral[value=ts-jest]) PropertyAssignment
|
122
|
+
const tsJestTsConfigStringLiteral = (0, tsquery_1.tsquery)(jestConfigAst, 'PropertyAssignment:has(Identifier[name=globals]) PropertyAssignment:has(StringLiteral[value=ts-jest]) PropertyAssignment:has(Identifier[name=tsconfig]) > StringLiteral', { visitAllChildren: true })[0];
|
123
123
|
if (!tsJestTsConfigStringLiteral) {
|
124
124
|
if (shouldWarn) {
|
125
125
|
devkit_2.logger.warn(`Couldn't find the "tsconfig" property for "ts-jest" in the Jest configuration file "${jestConfigPath}" specified in the ` +
|
@@ -1,6 +1,9 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
3
|
+
exports.replaceNrwlAngularMfImport = replaceNrwlAngularMfImport;
|
4
|
+
exports.replaceExportedMFETypes = replaceExportedMFETypes;
|
5
|
+
exports.renameSetupMfeGeneratorUsages = renameSetupMfeGeneratorUsages;
|
6
|
+
exports.default = default_1;
|
4
7
|
const devkit_1 = require("@nx/devkit");
|
5
8
|
const path_1 = require("path");
|
6
9
|
const tsquery_1 = require("@phenomnomnominal/tsquery");
|
@@ -27,7 +30,6 @@ function replaceNrwlAngularMfImport(fileContents) {
|
|
27
30
|
}
|
28
31
|
return fileContents;
|
29
32
|
}
|
30
|
-
exports.replaceNrwlAngularMfImport = replaceNrwlAngularMfImport;
|
31
33
|
function replaceExportedMFETypes(fileContents) {
|
32
34
|
const ast = tsquery_1.tsquery.ast(fileContents);
|
33
35
|
const queryResult = (0, tsquery_1.tsquery)(ast, NRWL_ANGULAR_MFE_TYPES_SELECTOR, {
|
@@ -42,7 +44,6 @@ function replaceExportedMFETypes(fileContents) {
|
|
42
44
|
}
|
43
45
|
return fileContents;
|
44
46
|
}
|
45
|
-
exports.replaceExportedMFETypes = replaceExportedMFETypes;
|
46
47
|
function renameSetupMfeGeneratorUsages(fileContents) {
|
47
48
|
// Attempt to update any custom generator usage of the changed generators
|
48
49
|
const NRWL_SETUP_MFE_IMPORT_SELECTOR = 'ImportDeclaration:has(StringLiteral[value=@nrwl/angular/generators]) > ImportClause:has(NamedImports:has(ImportSpecifier > Identifier[name=setupMfe]))';
|
@@ -71,7 +72,6 @@ function renameSetupMfeGeneratorUsages(fileContents) {
|
|
71
72
|
}
|
72
73
|
return fileContents;
|
73
74
|
}
|
74
|
-
exports.renameSetupMfeGeneratorUsages = renameSetupMfeGeneratorUsages;
|
75
75
|
async function default_1(tree) {
|
76
76
|
(0, devkit_1.visitNotIgnoredFiles)(tree, '/', (path) => {
|
77
77
|
const pathExtName = (0, path_1.extname)(path);
|
@@ -88,4 +88,3 @@ async function default_1(tree) {
|
|
88
88
|
tree.write(path, fileContents);
|
89
89
|
});
|
90
90
|
}
|
91
|
-
exports.default = default_1;
|
@@ -1,5 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.default = default_1;
|
3
4
|
const devkit_1 = require("@nx/devkit");
|
4
5
|
const angularCliVersion = '~14.1.0';
|
5
6
|
async function default_1(tree) {
|
@@ -19,4 +20,3 @@ async function default_1(tree) {
|
|
19
20
|
await (0, devkit_1.formatFiles)(tree);
|
20
21
|
}
|
21
22
|
}
|
22
|
-
exports.default = default_1;
|
@@ -1,5 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.default = default_1;
|
3
4
|
const devkit_1 = require("@nx/devkit");
|
4
5
|
const angularCliVersion = '~14.2.0';
|
5
6
|
async function default_1(tree) {
|
@@ -19,4 +20,3 @@ async function default_1(tree) {
|
|
19
20
|
await (0, devkit_1.formatFiles)(tree);
|
20
21
|
}
|
21
22
|
}
|
22
|
-
exports.default = default_1;
|
@@ -1,5 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.default = renameWebpackServer;
|
3
4
|
const devkit_1 = require("@nx/devkit");
|
4
5
|
function renameWebpackServer(tree) {
|
5
6
|
const projects = (0, devkit_1.getProjects)(tree);
|
@@ -18,4 +19,3 @@ function renameWebpackServer(tree) {
|
|
18
19
|
(0, devkit_1.updateProjectConfiguration)(tree, projectName, project);
|
19
20
|
}
|
20
21
|
}
|
21
|
-
exports.default = renameWebpackServer;
|
@@ -1,5 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.default = default_1;
|
3
4
|
const devkit_1 = require("@nx/devkit");
|
4
5
|
const executor_options_utils_1 = require("@nx/devkit/src/generators/executor-options-utils");
|
5
6
|
async function default_1(tree) {
|
@@ -31,7 +32,6 @@ async function default_1(tree) {
|
|
31
32
|
(0, devkit_1.updateNxJson)(tree, nxJson);
|
32
33
|
await (0, devkit_1.formatFiles)(tree);
|
33
34
|
}
|
34
|
-
exports.default = default_1;
|
35
35
|
function getKarmaTargetNames(tree) {
|
36
36
|
const karmaTargetNames = new Set();
|
37
37
|
(0, executor_options_utils_1.forEachExecutorOptions)(tree, '@angular-devkit/build-angular:karma', (_, __, target) => {
|
@@ -1,5 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.default = switchToJasmineMarbles;
|
3
4
|
const devkit_1 = require("@nx/devkit");
|
4
5
|
const path_1 = require("path");
|
5
6
|
const tsquery_1 = require("@phenomnomnominal/tsquery");
|
@@ -10,7 +11,6 @@ async function switchToJasmineMarbles(tree) {
|
|
10
11
|
const usesJasmineMarbles = await replaceJasmineMarbleUsagesInFiles(tree);
|
11
12
|
addJasmineMarblesDevDependencyIfUsed(tree, usesJasmineMarbles);
|
12
13
|
}
|
13
|
-
exports.default = switchToJasmineMarbles;
|
14
14
|
async function replaceJasmineMarbleUsagesInFiles(tree) {
|
15
15
|
let usesJasmineMarbles = false;
|
16
16
|
const projectGraph = await (() => {
|
@@ -1,6 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.DEFAULT_BROWSERS = void 0;
|
4
|
+
exports.default = removeBrowserlistConfig;
|
4
5
|
require("nx/src/internal-testing-utils/mock-project-graph");
|
5
6
|
const devkit_1 = require("@nx/devkit");
|
6
7
|
const path_1 = require("path");
|
@@ -56,4 +57,3 @@ async function removeBrowserlistConfig(tree) {
|
|
56
57
|
}
|
57
58
|
});
|
58
59
|
}
|
59
|
-
exports.default = removeBrowserlistConfig;
|
@@ -1,5 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.default = default_1;
|
3
4
|
const tslib_1 = require("tslib");
|
4
5
|
const devkit_1 = require("@nx/devkit");
|
5
6
|
const ts = tslib_1.__importStar(require("typescript"));
|
@@ -59,4 +60,3 @@ async function default_1(tree) {
|
|
59
60
|
});
|
60
61
|
await (0, devkit_1.formatFiles)(tree);
|
61
62
|
}
|
62
|
-
exports.default = default_1;
|
@@ -1,5 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.default = default_1;
|
3
4
|
const devkit_1 = require("@nx/devkit");
|
4
5
|
const angularCliVersion = '~15.0.0';
|
5
6
|
async function default_1(tree) {
|
@@ -19,4 +20,3 @@ async function default_1(tree) {
|
|
19
20
|
await (0, devkit_1.formatFiles)(tree);
|
20
21
|
}
|
21
22
|
}
|
22
|
-
exports.default = default_1;
|
@@ -1,5 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.default = default_1;
|
3
4
|
const tslib_1 = require("tslib");
|
4
5
|
const devkit_1 = require("@nx/devkit");
|
5
6
|
const ts = tslib_1.__importStar(require("typescript"));
|
@@ -12,7 +13,6 @@ async function default_1(tree) {
|
|
12
13
|
}
|
13
14
|
await (0, devkit_1.formatFiles)(tree);
|
14
15
|
}
|
15
|
-
exports.default = default_1;
|
16
16
|
function findTestMainFiles(tree) {
|
17
17
|
const testFiles = new Set();
|
18
18
|
// find all test.ts files.
|
@@ -1,5 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.default = updateTypescriptTarget;
|
3
4
|
const devkit_1 = require("@nx/devkit");
|
4
5
|
const workspace_models_1 = require("@schematics/angular/utility/workspace-models");
|
5
6
|
function updateTarget(tree, tsconfigPath) {
|
@@ -49,4 +50,3 @@ async function updateTypescriptTarget(tree) {
|
|
49
50
|
}
|
50
51
|
await (0, devkit_1.formatFiles)(tree);
|
51
52
|
}
|
52
|
-
exports.default = updateTypescriptTarget;
|
@@ -1,5 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.default = updateWorkspaceConfigurations;
|
3
4
|
const devkit_1 = require("@nx/devkit");
|
4
5
|
const workspace_models_1 = require("@schematics/angular/utility/workspace-models");
|
5
6
|
async function updateWorkspaceConfigurations(tree) {
|
@@ -21,4 +22,3 @@ async function updateWorkspaceConfigurations(tree) {
|
|
21
22
|
}
|
22
23
|
await (0, devkit_1.formatFiles)(tree);
|
23
24
|
}
|
24
|
-
exports.default = updateWorkspaceConfigurations;
|
@@ -1,5 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.default = default_1;
|
3
4
|
const devkit_1 = require("@nx/devkit");
|
4
5
|
const angularCliVersion = '~15.1.0';
|
5
6
|
async function default_1(tree) {
|
@@ -19,4 +20,3 @@ async function default_1(tree) {
|
|
19
20
|
await (0, devkit_1.formatFiles)(tree);
|
20
21
|
}
|
21
22
|
}
|
22
|
-
exports.default = default_1;
|
@@ -1,5 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.default = default_1;
|
3
4
|
const devkit_1 = require("@nx/devkit");
|
4
5
|
const child_process_1 = require("child_process");
|
5
6
|
const path_1 = require("path");
|
@@ -33,4 +34,3 @@ async function default_1(tree) {
|
|
33
34
|
const pmc = (0, devkit_1.getPackageManagerCommand)();
|
34
35
|
(0, child_process_1.execSync)(pmc.install, { stdio: [0, 1, 2] });
|
35
36
|
}
|
36
|
-
exports.default = default_1;
|
@@ -1,5 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.default = default_1;
|
3
4
|
const devkit_1 = require("@nx/devkit");
|
4
5
|
const angularCliVersion = '~15.2.0';
|
5
6
|
async function default_1(tree) {
|
@@ -19,4 +20,3 @@ async function default_1(tree) {
|
|
19
20
|
await (0, devkit_1.formatFiles)(tree);
|
20
21
|
}
|
21
22
|
}
|
22
|
-
exports.default = default_1;
|
@@ -1,5 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.default = updateFileServerExecutor;
|
3
4
|
const devkit_1 = require("@nx/devkit");
|
4
5
|
const versions_1 = require("../../utils/versions");
|
5
6
|
async function updateFileServerExecutor(tree) {
|
@@ -39,4 +40,3 @@ async function updateFileServerExecutor(tree) {
|
|
39
40
|
}
|
40
41
|
await (0, devkit_1.formatFiles)(tree);
|
41
42
|
}
|
42
|
-
exports.default = updateFileServerExecutor;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.updateTestingTsconfigForJest =
|
3
|
+
exports.updateTestingTsconfigForJest = updateTestingTsconfigForJest;
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
5
5
|
const executor_options_utils_1 = require("@nx/devkit/src/generators/executor-options-utils");
|
6
6
|
async function updateTestingTsconfigForJest(tree) {
|
@@ -22,7 +22,6 @@ async function updateTestingTsconfigForJest(tree) {
|
|
22
22
|
});
|
23
23
|
await (0, devkit_1.formatFiles)(tree);
|
24
24
|
}
|
25
|
-
exports.updateTestingTsconfigForJest = updateTestingTsconfigForJest;
|
26
25
|
function isJestPresetAngular(tree, jestConfigPath) {
|
27
26
|
if (jestConfigPath && tree.exists(jestConfigPath)) {
|
28
27
|
const contents = tree.read(jestConfigPath, 'utf-8');
|
@@ -1,5 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.default = removeKarmaDefaults;
|
3
4
|
const devkit_1 = require("@nx/devkit");
|
4
5
|
const GENERATORS = ['application', 'library', 'host', 'remote'];
|
5
6
|
const CANDIDATE_GENERATOR_COLLECTIONS = ['@nrwl/angular', '@nx/angular'];
|
@@ -22,7 +23,6 @@ async function removeKarmaDefaults(tree) {
|
|
22
23
|
}
|
23
24
|
await (0, devkit_1.formatFiles)(tree);
|
24
25
|
}
|
25
|
-
exports.default = removeKarmaDefaults;
|
26
26
|
function updateUnitTestRunner(generatorsConfig) {
|
27
27
|
const generators = Object.entries(generatorsConfig);
|
28
28
|
let updatedConfig = false;
|
@@ -1,5 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.default = removeLibraryGeneratorSimpleModuleNameOption;
|
3
4
|
const devkit_1 = require("@nx/devkit");
|
4
5
|
async function removeLibraryGeneratorSimpleModuleNameOption(tree) {
|
5
6
|
const nxJson = (0, devkit_1.readNxJson)(tree);
|
@@ -18,7 +19,6 @@ async function removeLibraryGeneratorSimpleModuleNameOption(tree) {
|
|
18
19
|
}
|
19
20
|
await (0, devkit_1.formatFiles)(tree);
|
20
21
|
}
|
21
|
-
exports.default = removeLibraryGeneratorSimpleModuleNameOption;
|
22
22
|
function replaceSimpleModuleNameInConfig(configObject) {
|
23
23
|
if (!configObject?.generators) {
|
24
24
|
return false;
|
@@ -1,5 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.default = removeProtractorDefaults;
|
3
4
|
const devkit_1 = require("@nx/devkit");
|
4
5
|
const GENERATORS = ['application', 'host', 'remote'];
|
5
6
|
const CANDIDATE_GENERATOR_COLLECTIONS = ['@nrwl/angular', '@nx/angular'];
|
@@ -22,7 +23,6 @@ async function removeProtractorDefaults(tree) {
|
|
22
23
|
}
|
23
24
|
await (0, devkit_1.formatFiles)(tree);
|
24
25
|
}
|
25
|
-
exports.default = removeProtractorDefaults;
|
26
26
|
function updateE2ETestRunner(generatorsConfig) {
|
27
27
|
const generators = Object.entries(generatorsConfig);
|
28
28
|
let updatedConfig = false;
|
@@ -1,9 +1,9 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.default = replacePackage;
|
3
4
|
const devkit_1 = require("@nx/devkit");
|
4
5
|
const replace_package_1 = require("@nx/devkit/src/utils/replace-package");
|
5
6
|
async function replacePackage(tree) {
|
6
7
|
await (0, replace_package_1.replaceNrwlPackageWithNxPackage)(tree, '@nrwl/angular', '@nx/angular');
|
7
8
|
await (0, devkit_1.formatFiles)(tree);
|
8
9
|
}
|
9
|
-
exports.default = replacePackage;
|
@@ -1,5 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.default = extractStandaloneConfig;
|
3
4
|
const devkit_1 = require("@nx/devkit");
|
4
5
|
const ensure_typescript_1 = require("@nx/js/src/utils/typescript/ensure-typescript");
|
5
6
|
const path_1 = require("path");
|
@@ -124,4 +125,3 @@ async function extractStandaloneConfig(tree) {
|
|
124
125
|
}
|
125
126
|
await (0, devkit_1.formatFiles)(tree);
|
126
127
|
}
|
127
|
-
exports.default = extractStandaloneConfig;
|
@@ -1,5 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.default = default_1;
|
3
4
|
const devkit_1 = require("@nx/devkit");
|
4
5
|
async function default_1(tree) {
|
5
6
|
(0, devkit_1.updateJson)(tree, 'package.json', (json) => {
|
@@ -19,4 +20,3 @@ async function default_1(tree) {
|
|
19
20
|
});
|
20
21
|
await (0, devkit_1.formatFiles)(tree);
|
21
22
|
}
|
22
|
-
exports.default = default_1;
|
@@ -1,5 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.default = default_1;
|
3
4
|
const tslib_1 = require("tslib");
|
4
5
|
const devkit_1 = require("@nx/devkit");
|
5
6
|
const ts = tslib_1.__importStar(require("typescript"));
|
@@ -59,4 +60,3 @@ async function default_1(tree) {
|
|
59
60
|
});
|
60
61
|
await (0, devkit_1.formatFiles)(tree);
|
61
62
|
}
|
62
|
-
exports.default = default_1;
|
@@ -1,6 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.angularCliVersion = void 0;
|
4
|
+
exports.default = default_1;
|
4
5
|
const devkit_1 = require("@nx/devkit");
|
5
6
|
exports.angularCliVersion = '~16.0.0';
|
6
7
|
async function default_1(tree) {
|
@@ -20,4 +21,3 @@ async function default_1(tree) {
|
|
20
21
|
await (0, devkit_1.formatFiles)(tree);
|
21
22
|
}
|
22
23
|
}
|
23
|
-
exports.default = default_1;
|
@@ -1,5 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.default = default_1;
|
3
4
|
const devkit_1 = require("@nx/devkit");
|
4
5
|
const executor_options_utils_1 = require("@nx/devkit/src/generators/executor-options-utils");
|
5
6
|
const executors = [
|
@@ -23,4 +24,3 @@ async function default_1(tree) {
|
|
23
24
|
});
|
24
25
|
await (0, devkit_1.formatFiles)(tree);
|
25
26
|
}
|
26
|
-
exports.default = default_1;
|
@@ -1,5 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.default = default_1;
|
3
4
|
const devkit_1 = require("@nx/devkit");
|
4
5
|
const ensure_typescript_1 = require("@nx/js/src/utils/typescript/ensure-typescript");
|
5
6
|
const file_change_recorder_1 = require("../../utils/file-change-recorder");
|
@@ -39,7 +40,6 @@ async function default_1(tree) {
|
|
39
40
|
await (0, devkit_1.formatFiles)(tree);
|
40
41
|
}
|
41
42
|
}
|
42
|
-
exports.default = default_1;
|
43
43
|
function replaceDataPersistenceInFile(tree, file) {
|
44
44
|
const fileContents = tree.read(file, 'utf-8');
|
45
45
|
const fileAst = tsquery.ast(fileContents);
|
@@ -1,5 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.default = default_1;
|
3
4
|
const devkit_1 = require("@nx/devkit");
|
4
5
|
// https://github.com/angular-eslint/angular-eslint/blob/24a4de54a8991c93924abf1dfb78b132a6269aef/packages/schematics/src/migrations/update-16-0-0/update-16-0-0.ts
|
5
6
|
async function default_1(tree) {
|
@@ -19,7 +20,6 @@ async function default_1(tree) {
|
|
19
20
|
});
|
20
21
|
await (0, devkit_1.formatFiles)(tree);
|
21
22
|
}
|
22
|
-
exports.default = default_1;
|
23
23
|
function modifyRules(parent) {
|
24
24
|
if (!parent.rules) {
|
25
25
|
return;
|
@@ -1,6 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.angularCliVersion = void 0;
|
4
|
+
exports.default = default_1;
|
4
5
|
const devkit_1 = require("@nx/devkit");
|
5
6
|
exports.angularCliVersion = '~16.1.0';
|
6
7
|
async function default_1(tree) {
|
@@ -20,4 +21,3 @@ async function default_1(tree) {
|
|
20
21
|
await (0, devkit_1.formatFiles)(tree);
|
21
22
|
}
|
22
23
|
}
|
23
|
-
exports.default = default_1;
|