@nx/workspace 23.0.0-beta.0 → 23.0.0-beta.10
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 → dist/generators.d.ts} +0 -1
- package/{index.d.ts → dist/index.d.ts} +0 -1
- package/{src → dist/src}/core/file-utils.d.ts +0 -1
- package/{src → dist/src}/core/project-graph.d.ts +0 -1
- package/{src → dist/src}/executors/counter/counter.impl.d.ts +0 -1
- package/{src → dist/src}/generators/ci-workflow/ci-workflow.d.ts +0 -1
- package/{src → dist/src}/generators/convert-to-monorepo/convert-to-monorepo.d.ts +0 -1
- package/{src → dist/src}/generators/convert-to-nx-project/convert-to-nx-project.d.ts +0 -1
- package/{src → dist/src}/generators/infer-targets/infer-targets.d.ts +0 -1
- package/{src → dist/src}/generators/infer-targets/infer-targets.js +2 -2
- package/{src → dist/src}/generators/move/lib/check-destination.d.ts +0 -1
- package/{src → dist/src}/generators/move/lib/create-project-configuration-in-new-destination.d.ts +0 -1
- package/{src → dist/src}/generators/move/lib/extract-base-configs.d.ts +0 -1
- package/{src → dist/src}/generators/move/lib/move-project-files.d.ts +0 -1
- package/{src → dist/src}/generators/move/lib/normalize-schema.d.ts +0 -1
- package/{src → dist/src}/generators/move/lib/run-angular-plugin.d.ts +0 -1
- package/{src → dist/src}/generators/move/lib/update-build-targets.d.ts +0 -1
- package/{src → dist/src}/generators/move/lib/update-cypress-config.d.ts +0 -1
- package/{src → dist/src}/generators/move/lib/update-default-project.d.ts +0 -1
- package/{src → dist/src}/generators/move/lib/update-eslint-config.d.ts +0 -1
- package/{src → dist/src}/generators/move/lib/update-implicit-dependencies.d.ts +0 -1
- package/{src → dist/src}/generators/move/lib/update-imports.d.ts +0 -1
- package/{src → dist/src}/generators/move/lib/update-jest-config.d.ts +0 -1
- package/{src → dist/src}/generators/move/lib/update-owners-and-conformance.d.ts +0 -1
- package/{src → dist/src}/generators/move/lib/update-package-json.d.ts +0 -1
- package/{src → dist/src}/generators/move/lib/update-project-root-files.d.ts +0 -1
- package/{src → dist/src}/generators/move/lib/update-readme.d.ts +0 -1
- package/{src → dist/src}/generators/move/lib/update-storybook-config.d.ts +0 -1
- package/{src → dist/src}/generators/move/lib/utils.d.ts +0 -1
- package/{src → dist/src}/generators/move/move.d.ts +0 -1
- package/{src → dist/src}/generators/new/generate-preset.d.ts +0 -1
- package/{src → dist/src}/generators/new/generate-workspace-files.d.ts +0 -1
- package/{src → dist/src}/generators/new/new.d.ts +0 -1
- package/{src → dist/src}/generators/npm-package/npm-package.d.ts +0 -1
- package/{src → dist/src}/generators/npm-package/npm-package.js +3 -3
- package/{src → dist/src}/generators/preset/preset.d.ts +0 -1
- package/{src → dist/src}/generators/preset/schema.json +2 -5
- package/{src → dist/src}/generators/remove/lib/__fixtures__/jest-project.config.d.ts +0 -1
- package/dist/src/generators/remove/lib/__fixtures__/jest.config.d.ts +1 -0
- package/{src → dist/src}/generators/remove/lib/__fixtures__/jest.config.js +2 -0
- package/{src → dist/src}/generators/remove/lib/check-dependencies.d.ts +0 -1
- package/{src → dist/src}/generators/remove/lib/check-project-is-safe-to-remove.d.ts +0 -1
- package/{src → dist/src}/generators/remove/lib/check-targets.d.ts +0 -1
- package/{src → dist/src}/generators/remove/lib/remove-project-references-in-config.d.ts +0 -1
- package/{src → dist/src}/generators/remove/lib/remove-project.d.ts +0 -1
- package/{src → dist/src}/generators/remove/lib/update-jest-config.d.ts +0 -1
- package/{src → dist/src}/generators/remove/lib/update-tsconfig.d.ts +0 -1
- package/{src → dist/src}/generators/remove/remove.d.ts +0 -1
- package/{src → dist/src}/generators/run-commands/run-commands.d.ts +0 -1
- package/{src → dist/src}/generators/utils/get-npm-package-version.d.ts +0 -1
- package/{src → dist/src}/generators/utils/insert-import.d.ts +0 -1
- package/{src → dist/src}/generators/utils/insert-statement.d.ts +0 -1
- package/{src → dist/src}/generators/utils/jest-config.d.ts +0 -1
- package/{src → dist/src}/generators/utils/presets.d.ts +0 -1
- package/{src → dist/src}/generators/utils/project-config.d.ts +0 -1
- package/dist/src/migrations/update-23-0-0/move-typescript-compilation-import.d.ts +3 -0
- package/dist/src/migrations/update-23-0-0/move-typescript-compilation-import.js +110 -0
- package/{src → dist/src}/tasks-runner/cache.d.ts +0 -1
- package/{src → dist/src}/tasks-runner/default-tasks-runner.d.ts +0 -1
- package/{src → dist/src}/tasks-runner/life-cycle.d.ts +0 -1
- package/{src → dist/src}/tasks-runner/life-cycles/dynamic-run-many-terminal-output-life-cycle.d.ts +0 -1
- package/{src → dist/src}/tasks-runner/tasks-runner.d.ts +0 -1
- package/{src → dist/src}/tasks-runner/utils.d.ts +0 -1
- package/{src → dist/src}/utilities/app-root.d.ts +0 -1
- package/{src → dist/src}/utilities/default-base.d.ts +0 -1
- package/{src → dist/src}/utilities/fileutils.d.ts +0 -1
- package/{src → dist/src}/utilities/get-import-path.d.ts +0 -1
- package/{src → dist/src}/utilities/output.d.ts +0 -1
- package/{src → dist/src}/utilities/package-manager-workspaces.d.ts +0 -1
- package/{src → dist/src}/utilities/ts-config.d.ts +0 -1
- package/{src → dist/src}/utilities/typescript/get-source-nodes.d.ts +0 -1
- package/{src → dist/src}/utilities/typescript/ts-solution-setup.d.ts +0 -1
- package/{src → dist/src}/utilities/typescript.d.ts +0 -3
- package/{src → dist/src}/utilities/typescript.js +1 -3
- package/{src → dist/src}/utils/ast-utils.d.ts +0 -1
- package/{src → dist/src}/utils/cli-config-utils.d.ts +0 -1
- package/{src → dist/src}/utils/lint.d.ts +0 -1
- package/{src → dist/src}/utils/output.d.ts +0 -1
- package/dist/src/utils/perf-logging.d.ts +1 -0
- package/{src → dist/src}/utils/project-type.d.ts +0 -1
- package/{src → dist/src}/utils/ts-solution-setup.d.ts +0 -1
- package/{src → dist/src}/utils/versions.d.ts +0 -1
- package/{src → dist/src}/utils/versions.js +5 -1
- package/dist/tasks-runners/default.d.ts +6 -0
- package/dist/tasks-runners/default.js +13 -0
- package/executors.json +8 -8
- package/generators.json +61 -61
- package/migrations.json +59 -53
- package/package.json +46 -7
- package/assets.json +0 -36
- package/generators.d.ts.map +0 -1
- package/index.d.ts.map +0 -1
- package/project.json +0 -16
- package/src/core/file-utils.d.ts.map +0 -1
- package/src/core/project-graph.d.ts.map +0 -1
- package/src/executors/counter/counter.impl.d.ts.map +0 -1
- package/src/generators/ci-workflow/ci-workflow.d.ts.map +0 -1
- package/src/generators/convert-to-monorepo/convert-to-monorepo.d.ts.map +0 -1
- package/src/generators/convert-to-nx-project/convert-to-nx-project.d.ts.map +0 -1
- package/src/generators/infer-targets/infer-targets.d.ts.map +0 -1
- package/src/generators/move/lib/check-destination.d.ts.map +0 -1
- package/src/generators/move/lib/create-project-configuration-in-new-destination.d.ts.map +0 -1
- package/src/generators/move/lib/extract-base-configs.d.ts.map +0 -1
- package/src/generators/move/lib/move-project-files.d.ts.map +0 -1
- package/src/generators/move/lib/normalize-schema.d.ts.map +0 -1
- package/src/generators/move/lib/run-angular-plugin.d.ts.map +0 -1
- package/src/generators/move/lib/update-build-targets.d.ts.map +0 -1
- package/src/generators/move/lib/update-cypress-config.d.ts.map +0 -1
- package/src/generators/move/lib/update-default-project.d.ts.map +0 -1
- package/src/generators/move/lib/update-eslint-config.d.ts.map +0 -1
- package/src/generators/move/lib/update-implicit-dependencies.d.ts.map +0 -1
- package/src/generators/move/lib/update-imports.d.ts.map +0 -1
- package/src/generators/move/lib/update-jest-config.d.ts.map +0 -1
- package/src/generators/move/lib/update-owners-and-conformance.d.ts.map +0 -1
- package/src/generators/move/lib/update-package-json.d.ts.map +0 -1
- package/src/generators/move/lib/update-project-root-files.d.ts.map +0 -1
- package/src/generators/move/lib/update-readme.d.ts.map +0 -1
- package/src/generators/move/lib/update-storybook-config.d.ts.map +0 -1
- package/src/generators/move/lib/utils.d.ts.map +0 -1
- package/src/generators/move/move.d.ts.map +0 -1
- package/src/generators/new/generate-preset.d.ts.map +0 -1
- package/src/generators/new/generate-workspace-files.d.ts.map +0 -1
- package/src/generators/new/new.d.ts.map +0 -1
- package/src/generators/npm-package/npm-package.d.ts.map +0 -1
- package/src/generators/preset/preset.d.ts.map +0 -1
- package/src/generators/remove/lib/__fixtures__/jest-project.config.d.ts.map +0 -1
- package/src/generators/remove/lib/__fixtures__/jest.config.d.ts +0 -1
- package/src/generators/remove/lib/__fixtures__/jest.config.d.ts.map +0 -1
- package/src/generators/remove/lib/check-dependencies.d.ts.map +0 -1
- package/src/generators/remove/lib/check-project-is-safe-to-remove.d.ts.map +0 -1
- package/src/generators/remove/lib/check-targets.d.ts.map +0 -1
- package/src/generators/remove/lib/remove-project-references-in-config.d.ts.map +0 -1
- package/src/generators/remove/lib/remove-project.d.ts.map +0 -1
- package/src/generators/remove/lib/update-jest-config.d.ts.map +0 -1
- package/src/generators/remove/lib/update-tsconfig.d.ts.map +0 -1
- package/src/generators/remove/remove.d.ts.map +0 -1
- package/src/generators/run-commands/run-commands.d.ts.map +0 -1
- package/src/generators/utils/get-npm-package-version.d.ts.map +0 -1
- package/src/generators/utils/insert-import.d.ts.map +0 -1
- package/src/generators/utils/insert-statement.d.ts.map +0 -1
- package/src/generators/utils/jest-config.d.ts.map +0 -1
- package/src/generators/utils/presets.d.ts.map +0 -1
- package/src/generators/utils/project-config.d.ts.map +0 -1
- package/src/tasks-runner/cache.d.ts.map +0 -1
- package/src/tasks-runner/default-tasks-runner.d.ts.map +0 -1
- package/src/tasks-runner/life-cycle.d.ts.map +0 -1
- package/src/tasks-runner/life-cycles/dynamic-run-many-terminal-output-life-cycle.d.ts.map +0 -1
- package/src/tasks-runner/tasks-runner.d.ts.map +0 -1
- package/src/tasks-runner/utils.d.ts.map +0 -1
- package/src/utilities/app-root.d.ts.map +0 -1
- package/src/utilities/default-base.d.ts.map +0 -1
- package/src/utilities/fileutils.d.ts.map +0 -1
- package/src/utilities/get-import-path.d.ts.map +0 -1
- package/src/utilities/output.d.ts.map +0 -1
- package/src/utilities/package-manager-workspaces.d.ts.map +0 -1
- package/src/utilities/ts-config.d.ts.map +0 -1
- package/src/utilities/typescript/compilation.d.ts +0 -23
- package/src/utilities/typescript/compilation.d.ts.map +0 -1
- package/src/utilities/typescript/compilation.js +0 -119
- package/src/utilities/typescript/get-source-nodes.d.ts.map +0 -1
- package/src/utilities/typescript/ts-solution-setup.d.ts.map +0 -1
- package/src/utilities/typescript.d.ts.map +0 -1
- package/src/utils/ast-utils.d.ts.map +0 -1
- package/src/utils/cli-config-utils.d.ts.map +0 -1
- package/src/utils/lint.d.ts.map +0 -1
- package/src/utils/output.d.ts.map +0 -1
- package/src/utils/perf-logging.d.ts +0 -2
- package/src/utils/perf-logging.d.ts.map +0 -1
- package/src/utils/project-type.d.ts.map +0 -1
- package/src/utils/ts-solution-setup.d.ts.map +0 -1
- package/src/utils/versions.d.ts.map +0 -1
- package/tasks-runners/default.d.ts +0 -2
- package/tasks-runners/default.d.ts.map +0 -1
- package/tasks-runners/default.js +0 -5
- /package/{LICENSE → dist/LICENSE} +0 -0
- /package/{generators.js → dist/generators.js} +0 -0
- /package/{index.js → dist/index.js} +0 -0
- /package/{presets → dist/presets}/core.json +0 -0
- /package/{presets → dist/presets}/npm.json +0 -0
- /package/{src → dist/src}/core/file-utils.js +0 -0
- /package/{src → dist/src}/core/project-graph.js +0 -0
- /package/{src → dist/src}/executors/counter/counter.impl.js +0 -0
- /package/{src → dist/src}/executors/counter/schema.json +0 -0
- /package/{src → dist/src}/generators/ci-workflow/ci-workflow.js +0 -0
- /package/{src → dist/src}/generators/ci-workflow/files/azure/azure-pipelines.yml__tmpl__ +0 -0
- /package/{src → dist/src}/generators/ci-workflow/files/bitbucket-pipelines/bitbucket-pipelines.yml__tmpl__ +0 -0
- /package/{src → dist/src}/generators/ci-workflow/files/circleci/.circleci/config.yml__tmpl__ +0 -0
- /package/{src → dist/src}/generators/ci-workflow/files/github/.github/workflows/__workflowFileName__.yml__tmpl__ +0 -0
- /package/{src → dist/src}/generators/ci-workflow/files/gitlab/.gitlab-ci.yml__tmpl__ +0 -0
- /package/{src → dist/src}/generators/ci-workflow/schema.json +0 -0
- /package/{src → dist/src}/generators/convert-to-monorepo/convert-to-monorepo.js +0 -0
- /package/{src → dist/src}/generators/convert-to-monorepo/schema.json +0 -0
- /package/{src → dist/src}/generators/convert-to-nx-project/convert-to-nx-project.js +0 -0
- /package/{src → dist/src}/generators/convert-to-nx-project/schema.d.ts +0 -0
- /package/{src → dist/src}/generators/convert-to-nx-project/schema.json +0 -0
- /package/{src → dist/src}/generators/infer-targets/schema.json +0 -0
- /package/{src → dist/src}/generators/move/lib/check-destination.js +0 -0
- /package/{src → dist/src}/generators/move/lib/create-project-configuration-in-new-destination.js +0 -0
- /package/{src → dist/src}/generators/move/lib/extract-base-configs.js +0 -0
- /package/{src → dist/src}/generators/move/lib/move-project-files.js +0 -0
- /package/{src → dist/src}/generators/move/lib/normalize-schema.js +0 -0
- /package/{src → dist/src}/generators/move/lib/run-angular-plugin.js +0 -0
- /package/{src → dist/src}/generators/move/lib/update-build-targets.js +0 -0
- /package/{src → dist/src}/generators/move/lib/update-cypress-config.js +0 -0
- /package/{src → dist/src}/generators/move/lib/update-default-project.js +0 -0
- /package/{src → dist/src}/generators/move/lib/update-eslint-config.js +0 -0
- /package/{src → dist/src}/generators/move/lib/update-implicit-dependencies.js +0 -0
- /package/{src → dist/src}/generators/move/lib/update-imports.js +0 -0
- /package/{src → dist/src}/generators/move/lib/update-jest-config.js +0 -0
- /package/{src → dist/src}/generators/move/lib/update-owners-and-conformance.js +0 -0
- /package/{src → dist/src}/generators/move/lib/update-package-json.js +0 -0
- /package/{src → dist/src}/generators/move/lib/update-project-root-files.js +0 -0
- /package/{src → dist/src}/generators/move/lib/update-readme.js +0 -0
- /package/{src → dist/src}/generators/move/lib/update-storybook-config.js +0 -0
- /package/{src → dist/src}/generators/move/lib/utils.js +0 -0
- /package/{src → dist/src}/generators/move/move.js +0 -0
- /package/{src → dist/src}/generators/move/schema.d.ts +0 -0
- /package/{src → dist/src}/generators/move/schema.json +0 -0
- /package/{src → dist/src}/generators/new/files-integrated-repo/__dot__editorconfig +0 -0
- /package/{src → dist/src}/generators/new/files-integrated-repo/__dot__gitignore +0 -0
- /package/{src → dist/src}/generators/new/files-integrated-repo/__dot__vscode/extensions.json__tmpl__ +0 -0
- /package/{src → dist/src}/generators/new/files-integrated-repo/package.json__tmpl__ +0 -0
- /package/{src → dist/src}/generators/new/files-package-based-repo/__dot__gitignore +0 -0
- /package/{src → dist/src}/generators/new/files-package-based-repo/__dot__vscode/extensions.json__tmpl__ +0 -0
- /package/{src → dist/src}/generators/new/files-package-based-repo/package.json__tmpl__ +0 -0
- /package/{src → dist/src}/generators/new/files-package-based-repo/packages/__dot__gitkeep +0 -0
- /package/{src → dist/src}/generators/new/files-readme/README.md.template +0 -0
- /package/{src → dist/src}/generators/new/files-root-app/__dot__gitignore +0 -0
- /package/{src → dist/src}/generators/new/files-root-app/__dot__vscode/extensions.json__tmpl__ +0 -0
- /package/{src → dist/src}/generators/new/files-root-app/package.json__tmpl__ +0 -0
- /package/{src → dist/src}/generators/new/generate-preset.js +0 -0
- /package/{src → dist/src}/generators/new/generate-workspace-files.js +0 -0
- /package/{src → dist/src}/generators/new/new.js +0 -0
- /package/{src → dist/src}/generators/new/schema.json +0 -0
- /package/{src → dist/src}/generators/npm-package/files/index.js.template +0 -0
- /package/{src → dist/src}/generators/npm-package/schema.json +0 -0
- /package/{src → dist/src}/generators/preset/preset.js +0 -0
- /package/{src → dist/src}/generators/preset/schema.d.ts +0 -0
- /package/{src → dist/src}/generators/remove/lib/__fixtures__/jest-project.config.js +0 -0
- /package/{src → dist/src}/generators/remove/lib/check-dependencies.js +0 -0
- /package/{src → dist/src}/generators/remove/lib/check-project-is-safe-to-remove.js +0 -0
- /package/{src → dist/src}/generators/remove/lib/check-targets.js +0 -0
- /package/{src → dist/src}/generators/remove/lib/remove-project-references-in-config.js +0 -0
- /package/{src → dist/src}/generators/remove/lib/remove-project.js +0 -0
- /package/{src → dist/src}/generators/remove/lib/update-jest-config.js +0 -0
- /package/{src → dist/src}/generators/remove/lib/update-tsconfig.js +0 -0
- /package/{src → dist/src}/generators/remove/remove.js +0 -0
- /package/{src → dist/src}/generators/remove/schema.d.ts +0 -0
- /package/{src → dist/src}/generators/remove/schema.json +0 -0
- /package/{src → dist/src}/generators/run-commands/run-commands.js +0 -0
- /package/{src → dist/src}/generators/run-commands/schema.d.ts +0 -0
- /package/{src → dist/src}/generators/run-commands/schema.json +0 -0
- /package/{src → dist/src}/generators/utils/get-npm-package-version.js +0 -0
- /package/{src → dist/src}/generators/utils/insert-import.js +0 -0
- /package/{src → dist/src}/generators/utils/insert-statement.js +0 -0
- /package/{src → dist/src}/generators/utils/jest-config.js +0 -0
- /package/{src → dist/src}/generators/utils/presets.js +0 -0
- /package/{src → dist/src}/generators/utils/project-config.js +0 -0
- /package/{src → dist/src}/tasks-runner/cache.js +0 -0
- /package/{src → dist/src}/tasks-runner/default-tasks-runner.js +0 -0
- /package/{src → dist/src}/tasks-runner/life-cycle.js +0 -0
- /package/{src → dist/src}/tasks-runner/life-cycles/dynamic-run-many-terminal-output-life-cycle.js +0 -0
- /package/{src → dist/src}/tasks-runner/tasks-runner.js +0 -0
- /package/{src → dist/src}/tasks-runner/utils.js +0 -0
- /package/{src → dist/src}/utilities/app-root.js +0 -0
- /package/{src → dist/src}/utilities/default-base.js +0 -0
- /package/{src → dist/src}/utilities/fileutils.js +0 -0
- /package/{src → dist/src}/utilities/get-import-path.js +0 -0
- /package/{src → dist/src}/utilities/output.js +0 -0
- /package/{src → dist/src}/utilities/package-manager-workspaces.js +0 -0
- /package/{src → dist/src}/utilities/ts-config.js +0 -0
- /package/{src → dist/src}/utilities/typescript/get-source-nodes.js +0 -0
- /package/{src → dist/src}/utilities/typescript/ts-solution-setup.js +0 -0
- /package/{src → dist/src}/utils/ast-utils.js +0 -0
- /package/{src → dist/src}/utils/cli-config-utils.js +0 -0
- /package/{src → dist/src}/utils/lint.js +0 -0
- /package/{src → dist/src}/utils/output.js +0 -0
- /package/{src → dist/src}/utils/perf-logging.js +0 -0
- /package/{src → dist/src}/utils/project-type.js +0 -0
- /package/{src → dist/src}/utils/ts-solution-setup.js +0 -0
|
@@ -3,4 +3,3 @@ export { moveGenerator } from './src/generators/move/move';
|
|
|
3
3
|
export { removeGenerator } from './src/generators/remove/remove';
|
|
4
4
|
export { runCommandsGenerator } from './src/generators/run-commands/run-commands';
|
|
5
5
|
export { convertToNxProjectGenerator } from './src/generators/convert-to-nx-project/convert-to-nx-project';
|
|
6
|
-
//# sourceMappingURL=generators.d.ts.map
|
|
@@ -10,4 +10,3 @@ export { moveGenerator } from './src/generators/move/move';
|
|
|
10
10
|
export { removeGenerator } from './src/generators/remove/remove';
|
|
11
11
|
export { runCommandsGenerator } from './src/generators/run-commands/run-commands';
|
|
12
12
|
export { convertToNxProjectGenerator } from './src/generators/convert-to-nx-project/convert-to-nx-project';
|
|
13
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -3,4 +3,3 @@ import { Schema } from './schema';
|
|
|
3
3
|
export declare function validateSchema(schema: Schema, configName: string): Promise<void>;
|
|
4
4
|
export declare function convertToNxProjectGenerator(host: Tree, schema: Schema): Promise<void>;
|
|
5
5
|
export default convertToNxProjectGenerator;
|
|
6
|
-
//# sourceMappingURL=convert-to-nx-project.d.ts.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.convertToInferredGenerator = convertToInferredGenerator;
|
|
4
|
+
const internal_1 = require("@nx/devkit/internal");
|
|
4
5
|
const devkit_1 = require("@nx/devkit");
|
|
5
|
-
const executor_to_plugin_migrator_1 = require("@nx/devkit/src/generators/plugin-migrations/executor-to-plugin-migrator");
|
|
6
6
|
const enquirer_1 = require("enquirer");
|
|
7
7
|
const generator_utils_1 = require("nx/src/command-line/generate/generator-utils");
|
|
8
8
|
const installed_plugins_1 = require("nx/src/utils/plugins/installed-plugins");
|
|
@@ -66,7 +66,7 @@ async function convertToInferredGenerator(tree, options) {
|
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
68
|
catch (e) {
|
|
69
|
-
if (e instanceof
|
|
69
|
+
if (e instanceof internal_1.NoTargetsToMigrateError) {
|
|
70
70
|
devkit_1.output.note({
|
|
71
71
|
title: `${generatorCollection}:convert-to-inferred - Skipped (No targets to migrate)`,
|
|
72
72
|
});
|
|
@@ -9,4 +9,3 @@ import type { NormalizedSchema } from '../schema';
|
|
|
9
9
|
* @param schema The options provided to the schematic
|
|
10
10
|
*/
|
|
11
11
|
export declare function checkDestination(tree: Tree, schema: NormalizedSchema, providedDestination: string): void;
|
|
12
|
-
//# sourceMappingURL=check-destination.d.ts.map
|
package/{src → dist/src}/generators/move/lib/create-project-configuration-in-new-destination.d.ts
RENAMED
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
import { ProjectConfiguration, Tree } from '@nx/devkit';
|
|
2
2
|
import { NormalizedSchema } from '../schema';
|
|
3
3
|
export declare function createProjectConfigurationInNewDestination(tree: Tree, schema: NormalizedSchema, projectConfig: ProjectConfiguration): void;
|
|
4
|
-
//# sourceMappingURL=create-project-configuration-in-new-destination.d.ts.map
|
|
@@ -2,4 +2,3 @@ import { ProjectConfiguration, Tree } from '@nx/devkit';
|
|
|
2
2
|
export declare function maybeExtractTsConfigBase(tree: Tree): void;
|
|
3
3
|
export declare function maybeExtractJestConfigBase(tree: Tree): Promise<void>;
|
|
4
4
|
export declare function maybeMigrateEslintConfigIfRootProject(tree: Tree, rootProject: ProjectConfiguration): void;
|
|
5
|
-
//# sourceMappingURL=extract-base-configs.d.ts.map
|
|
@@ -6,4 +6,3 @@ import { NormalizedSchema } from '../schema';
|
|
|
6
6
|
* @param schema The options provided to the schematic
|
|
7
7
|
*/
|
|
8
8
|
export declare function moveProjectFiles(tree: Tree, schema: NormalizedSchema, project: ProjectConfiguration): void;
|
|
9
|
-
//# sourceMappingURL=move-project-files.d.ts.map
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
import { type ProjectConfiguration, type Tree } from '@nx/devkit';
|
|
2
2
|
import type { NormalizedSchema, Schema } from '../schema';
|
|
3
3
|
export declare function normalizeSchema(tree: Tree, schema: Schema, projectConfiguration: ProjectConfiguration): Promise<NormalizedSchema>;
|
|
4
|
-
//# sourceMappingURL=normalize-schema.d.ts.map
|
|
@@ -8,4 +8,3 @@ import { NormalizedSchema } from '../schema';
|
|
|
8
8
|
* @param schema The options provided to the schematic
|
|
9
9
|
*/
|
|
10
10
|
export declare function updateCypressConfig(tree: Tree, schema: NormalizedSchema, project: ProjectConfiguration): Tree;
|
|
11
|
-
//# sourceMappingURL=update-cypress-config.d.ts.map
|
|
@@ -6,4 +6,3 @@ import { NormalizedSchema } from '../schema';
|
|
|
6
6
|
* @param schema The options provided to the schematic
|
|
7
7
|
*/
|
|
8
8
|
export declare function updateEslintConfig(tree: Tree, schema: NormalizedSchema, project: ProjectConfiguration): void;
|
|
9
|
-
//# sourceMappingURL=update-eslint-config.d.ts.map
|
|
@@ -8,4 +8,3 @@ import { NormalizedSchema } from '../schema';
|
|
|
8
8
|
* @param schema The options provided to the schematic
|
|
9
9
|
*/
|
|
10
10
|
export declare function updateJestConfig(tree: Tree, schema: NormalizedSchema, project: ProjectConfiguration): void;
|
|
11
|
-
//# sourceMappingURL=update-jest-config.d.ts.map
|
|
@@ -10,4 +10,3 @@ import { NormalizedSchema } from '../schema';
|
|
|
10
10
|
export declare function updateProjectRootFiles(tree: Tree, schema: NormalizedSchema, project: ProjectConfiguration): void;
|
|
11
11
|
export declare function updateFilesForRootProjects(tree: Tree, schema: NormalizedSchema, project: ProjectConfiguration): void;
|
|
12
12
|
export declare function updateFilesForNonRootProjects(tree: Tree, schema: NormalizedSchema, project: ProjectConfiguration): void;
|
|
13
|
-
//# sourceMappingURL=update-project-root-files.d.ts.map
|
|
@@ -2,4 +2,3 @@ import { Tree } from '@nx/devkit';
|
|
|
2
2
|
import { NormalizedSchema } from './new';
|
|
3
3
|
export declare function addPresetDependencies(host: Tree, options: NormalizedSchema): import("@nx/devkit").GeneratorCallback;
|
|
4
4
|
export declare function generatePreset(host: Tree, opts: NormalizedSchema): Promise<void>;
|
|
5
|
-
//# sourceMappingURL=generate-preset.d.ts.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.npmPackageGenerator = npmPackageGenerator;
|
|
4
|
+
const internal_1 = require("@nx/devkit/internal");
|
|
4
5
|
const devkit_1 = require("@nx/devkit");
|
|
5
|
-
const project_name_and_root_utils_1 = require("@nx/devkit/src/generators/project-name-and-root-utils");
|
|
6
6
|
const path_1 = require("path");
|
|
7
7
|
async function normalizeOptions(tree, options) {
|
|
8
|
-
await (0,
|
|
9
|
-
const { projectName, projectRoot, importPath } = await (0,
|
|
8
|
+
await (0, internal_1.ensureRootProjectName)(options, 'library');
|
|
9
|
+
const { projectName, projectRoot, importPath } = await (0, internal_1.determineProjectNameAndRootOptions)(tree, {
|
|
10
10
|
name: options.name,
|
|
11
11
|
projectType: 'library',
|
|
12
12
|
directory: options.directory,
|
|
@@ -33,6 +33,7 @@
|
|
|
33
33
|
"description": "The file extension to be used for style files.",
|
|
34
34
|
"type": "string",
|
|
35
35
|
"default": "css",
|
|
36
|
+
"enum": ["css", "scss"],
|
|
36
37
|
"x-prompt": {
|
|
37
38
|
"message": "Which stylesheet format would you like to use?",
|
|
38
39
|
"type": "list",
|
|
@@ -43,11 +44,7 @@
|
|
|
43
44
|
},
|
|
44
45
|
{
|
|
45
46
|
"value": "scss",
|
|
46
|
-
"label": "SASS(.scss) [ https://sass-lang.com
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
"value": "less",
|
|
50
|
-
"label": "LESS [ https://lesscss.org ]"
|
|
47
|
+
"label": "SASS(.scss) [ https://sass-lang.com ]"
|
|
51
48
|
}
|
|
52
49
|
]
|
|
53
50
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
import { ProjectConfiguration, Tree } from '@nx/devkit';
|
|
2
2
|
import { Schema } from '../schema';
|
|
3
3
|
export declare function checkProjectIsSafeToRemove(tree: Tree, schema: Schema, project: ProjectConfiguration): void;
|
|
4
|
-
//# sourceMappingURL=check-project-is-safe-to-remove.d.ts.map
|
|
@@ -4,4 +4,3 @@ import { Schema } from '../schema';
|
|
|
4
4
|
* Updates the root jest config projects array and removes the project.
|
|
5
5
|
*/
|
|
6
6
|
export declare function updateJestConfig(tree: Tree, schema: Schema, projectConfig: ProjectConfiguration): void;
|
|
7
|
-
//# sourceMappingURL=update-jest-config.d.ts.map
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = moveTypescriptCompilationImport;
|
|
4
|
+
exports.rewriteCompilationImport = rewriteCompilationImport;
|
|
5
|
+
const devkit_1 = require("@nx/devkit");
|
|
6
|
+
const TS_EXTENSIONS = ['.ts', '.tsx', '.cts', '.mts'];
|
|
7
|
+
const FROM_SPECIFIER = '@nx/workspace/src/utilities/typescript/compilation';
|
|
8
|
+
const TO_SPECIFIER = '@nx/js/src/utils/typescript/compilation';
|
|
9
|
+
// Methods on `jest` and `vi` that take a module specifier as their first arg.
|
|
10
|
+
// Calls like `jest.mock('@nx/workspace/src/utilities/typescript/compilation')`
|
|
11
|
+
// are rewritten so the mock target lines up with the rewritten import.
|
|
12
|
+
const MOCK_HELPER_METHODS = new Set([
|
|
13
|
+
'mock',
|
|
14
|
+
'unmock',
|
|
15
|
+
'doMock',
|
|
16
|
+
'dontMock',
|
|
17
|
+
'requireActual',
|
|
18
|
+
'requireMock',
|
|
19
|
+
'importActual',
|
|
20
|
+
'importMock',
|
|
21
|
+
]);
|
|
22
|
+
// Resolved lazily so the migration only pays the typescript load cost when it
|
|
23
|
+
// actually has work to do.
|
|
24
|
+
let ts;
|
|
25
|
+
async function moveTypescriptCompilationImport(tree) {
|
|
26
|
+
let touchedCount = 0;
|
|
27
|
+
(0, devkit_1.visitNotIgnoredFiles)(tree, '.', (filePath) => {
|
|
28
|
+
if (!TS_EXTENSIONS.some((ext) => filePath.endsWith(ext))) {
|
|
29
|
+
return;
|
|
30
|
+
}
|
|
31
|
+
const original = tree.read(filePath, 'utf-8');
|
|
32
|
+
if (!original || !original.includes(FROM_SPECIFIER)) {
|
|
33
|
+
return;
|
|
34
|
+
}
|
|
35
|
+
const updated = rewriteCompilationImport(original);
|
|
36
|
+
if (updated !== original) {
|
|
37
|
+
tree.write(filePath, updated);
|
|
38
|
+
touchedCount += 1;
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
if (touchedCount > 0) {
|
|
42
|
+
devkit_1.logger.info(`Rewrote @nx/workspace/src/utilities/typescript/compilation imports in ${touchedCount} file(s).`);
|
|
43
|
+
}
|
|
44
|
+
await (0, devkit_1.formatFiles)(tree);
|
|
45
|
+
}
|
|
46
|
+
function rewriteCompilationImport(source) {
|
|
47
|
+
ts ??= (0, devkit_1.ensurePackage)('typescript', '*');
|
|
48
|
+
const sourceFile = ts.createSourceFile('tmp.ts', source, ts.ScriptTarget.Latest,
|
|
49
|
+
/* setParentNodes */ true, ts.ScriptKind.TSX);
|
|
50
|
+
const changes = [];
|
|
51
|
+
collectImportRewrites(sourceFile, changes);
|
|
52
|
+
collectCallExpressionRewrites(sourceFile, changes);
|
|
53
|
+
return changes.length > 0 ? (0, devkit_1.applyChangesToString)(source, changes) : source;
|
|
54
|
+
}
|
|
55
|
+
function collectImportRewrites(sourceFile, changes) {
|
|
56
|
+
for (const stmt of sourceFile.statements) {
|
|
57
|
+
if (!ts.isImportDeclaration(stmt))
|
|
58
|
+
continue;
|
|
59
|
+
if (!ts.isStringLiteral(stmt.moduleSpecifier))
|
|
60
|
+
continue;
|
|
61
|
+
if (stmt.moduleSpecifier.text !== FROM_SPECIFIER)
|
|
62
|
+
continue;
|
|
63
|
+
replaceSpecifier(sourceFile, stmt.moduleSpecifier, changes);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
function collectCallExpressionRewrites(sourceFile, changes) {
|
|
67
|
+
const visit = (node) => {
|
|
68
|
+
if (ts.isCallExpression(node) &&
|
|
69
|
+
shouldRewriteCallExpression(node) &&
|
|
70
|
+
node.arguments.length >= 1 &&
|
|
71
|
+
ts.isStringLiteral(node.arguments[0]) &&
|
|
72
|
+
node.arguments[0].text === FROM_SPECIFIER) {
|
|
73
|
+
replaceSpecifier(sourceFile, node.arguments[0], changes);
|
|
74
|
+
}
|
|
75
|
+
ts.forEachChild(node, visit);
|
|
76
|
+
};
|
|
77
|
+
visit(sourceFile);
|
|
78
|
+
}
|
|
79
|
+
function shouldRewriteCallExpression(call) {
|
|
80
|
+
const callee = call.expression;
|
|
81
|
+
// `require('...')`
|
|
82
|
+
if (ts.isIdentifier(callee) && callee.text === 'require')
|
|
83
|
+
return true;
|
|
84
|
+
// dynamic `import('...')` (runtime form parses as a CallExpression whose
|
|
85
|
+
// callee is the `import` keyword). The type-position form
|
|
86
|
+
// (`typeof import('...')`) is an `ImportTypeNode`, not a CallExpression, so
|
|
87
|
+
// we don't touch it.
|
|
88
|
+
if (callee.kind === ts.SyntaxKind.ImportKeyword)
|
|
89
|
+
return true;
|
|
90
|
+
// `jest.mock(...)` / `vi.mock(...)` and friends.
|
|
91
|
+
if (ts.isPropertyAccessExpression(callee)) {
|
|
92
|
+
const obj = callee.expression;
|
|
93
|
+
if (ts.isIdentifier(obj) &&
|
|
94
|
+
(obj.text === 'jest' || obj.text === 'vi') &&
|
|
95
|
+
MOCK_HELPER_METHODS.has(callee.name.text)) {
|
|
96
|
+
return true;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
return false;
|
|
100
|
+
}
|
|
101
|
+
function replaceSpecifier(sourceFile, literal, changes) {
|
|
102
|
+
const start = literal.getStart(sourceFile);
|
|
103
|
+
const end = literal.getEnd();
|
|
104
|
+
const quote = sourceFile.text.charAt(start);
|
|
105
|
+
changes.push({ type: devkit_1.ChangeType.Delete, start, length: end - start }, {
|
|
106
|
+
type: devkit_1.ChangeType.Insert,
|
|
107
|
+
index: start,
|
|
108
|
+
text: `${quote}${TO_SPECIFIER}${quote}`,
|
|
109
|
+
});
|
|
110
|
+
}
|
|
@@ -11,4 +11,3 @@ export { fileExists, directoryExists, isRelativePath, createDirectory };
|
|
|
11
11
|
export declare function updateJsonFile(path: string, callback: (a: any) => any): void;
|
|
12
12
|
export declare function copyFile(file: string, target: string): void;
|
|
13
13
|
export declare function renameSync(from: string, to: string, cb: (err: Error | null) => void): void;
|
|
14
|
-
//# sourceMappingURL=fileutils.d.ts.map
|
|
@@ -3,4 +3,3 @@ export declare function isProjectIncludedInPackageManagerWorkspaces(tree: Tree,
|
|
|
3
3
|
export declare function getPackageManagerWorkspacesPatterns(tree: Tree): string[];
|
|
4
4
|
export declare function isUsingPackageManagerWorkspaces(tree: Tree): boolean;
|
|
5
5
|
export declare function isWorkspacesEnabled(tree: Tree): boolean;
|
|
6
|
-
//# sourceMappingURL=package-manager-workspaces.d.ts.map
|
|
@@ -5,4 +5,3 @@ export declare function getRootTsConfigPathInTree(tree: Tree): string | null;
|
|
|
5
5
|
export declare function getRelativePathToRootTsConfig(tree: Tree, targetPath: string): string;
|
|
6
6
|
export declare function getRootTsConfigFileName(): string | null;
|
|
7
7
|
export declare function findNodes(node: Node, kind: SyntaxKind | SyntaxKind[], max?: number): Node[];
|
|
8
|
-
//# sourceMappingURL=ts-config.d.ts.map
|
|
@@ -3,4 +3,3 @@ import type * as ts from 'typescript';
|
|
|
3
3
|
* @deprecated This function will be removed from @nx/workspace in version 17. Prefer importing from @nx/js.
|
|
4
4
|
*/
|
|
5
5
|
export declare function getSourceNodes(sourceFile: ts.SourceFile): ts.Node[];
|
|
6
|
-
//# sourceMappingURL=get-source-nodes.d.ts.map
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import type * as ts from 'typescript';
|
|
2
|
-
export { compileTypeScript } from './typescript/compilation';
|
|
3
|
-
export type { TypeScriptCompilationOptions } from './typescript/compilation';
|
|
4
2
|
export { getSourceNodes } from './typescript/get-source-nodes';
|
|
5
3
|
/**
|
|
6
4
|
* Find a module based on it's import
|
|
@@ -11,4 +9,3 @@ export { getSourceNodes } from './typescript/get-source-nodes';
|
|
|
11
9
|
*/
|
|
12
10
|
export declare function resolveModuleByImport(importExpr: string, filePath: string, tsConfigPath: string): string;
|
|
13
11
|
export declare function ensureTypescript(): typeof ts;
|
|
14
|
-
//# sourceMappingURL=typescript.d.ts.map
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getSourceNodes =
|
|
3
|
+
exports.getSourceNodes = void 0;
|
|
4
4
|
exports.resolveModuleByImport = resolveModuleByImport;
|
|
5
5
|
exports.ensureTypescript = ensureTypescript;
|
|
6
6
|
const devkit_1 = require("@nx/devkit");
|
|
7
7
|
const path_1 = require("path");
|
|
8
8
|
const versions_1 = require("../utils/versions");
|
|
9
|
-
var compilation_1 = require("./typescript/compilation");
|
|
10
|
-
Object.defineProperty(exports, "compileTypeScript", { enumerable: true, get: function () { return compilation_1.compileTypeScript; } });
|
|
11
9
|
var get_source_nodes_1 = require("./typescript/get-source-nodes");
|
|
12
10
|
Object.defineProperty(exports, "getSourceNodes", { enumerable: true, get: function () { return get_source_nodes_1.getSourceNodes; } });
|
|
13
11
|
const normalizedAppRoot = devkit_1.workspaceRoot.replace(/\\/g, '/');
|