@nx/devkit 23.0.0-beta.4 → 23.0.0-beta.6
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/{index.d.ts → dist/index.d.ts} +0 -1
- package/dist/internal.d.ts +21 -0
- package/dist/internal.js +65 -0
- package/{ngcli-adapter.d.ts → dist/ngcli-adapter.d.ts} +0 -1
- package/{public-api.d.ts → dist/public-api.d.ts} +0 -1
- package/{src → dist/src}/executors/parse-target-string.d.ts +0 -1
- package/{src → dist/src}/executors/read-target-options.d.ts +0 -1
- package/{src → dist/src}/generators/artifact-name-and-directory-utils.d.ts +0 -1
- package/{src → dist/src}/generators/e2e-web-server-info-utils.d.ts +0 -1
- package/{src → dist/src}/generators/executor-options-utils.d.ts +0 -1
- package/{src → dist/src}/generators/format-files.d.ts +0 -1
- package/{src → dist/src}/generators/format-files.js +1 -1
- package/{src → dist/src}/generators/generate-files.d.ts +0 -1
- package/{src → dist/src}/generators/plugin-migrations/aggregate-log-util.d.ts +0 -1
- package/{src → dist/src}/generators/plugin-migrations/executor-to-plugin-migrator.d.ts +0 -1
- package/{src → dist/src}/generators/plugin-migrations/plugin-migration-utils.d.ts +0 -1
- package/{src → dist/src}/generators/project-name-and-root-utils.d.ts +0 -1
- package/{src → dist/src}/generators/prompt.d.ts +0 -1
- package/{src → dist/src}/generators/run-tasks-in-serial.d.ts +0 -1
- package/{src → dist/src}/generators/target-defaults-utils.d.ts +0 -1
- package/{src → dist/src}/generators/target-defaults-utils.js +1 -34
- package/{src → dist/src}/generators/to-js.d.ts +0 -1
- package/{src → dist/src}/generators/typescript/insert-import.d.ts +0 -1
- package/{src → dist/src}/generators/typescript/insert-statement.d.ts +0 -1
- package/{src → dist/src}/generators/update-ts-configs-to-js.d.ts +0 -1
- package/{src → dist/src}/generators/visit-not-ignored-files.d.ts +0 -1
- package/dist/src/migrations/update-23-0-0/update-deep-imports.d.ts +4 -0
- package/dist/src/migrations/update-23-0-0/update-deep-imports.js +261 -0
- package/{src → dist/src}/tasks/install-packages-task.d.ts +0 -1
- package/{src → dist/src}/utils/add-plugin.d.ts +0 -1
- package/{src → dist/src}/utils/async-iterable/combine-async-iterables.d.ts +0 -1
- package/{src → dist/src}/utils/async-iterable/create-async-iterable.d.ts +0 -1
- package/{src → dist/src}/utils/async-iterable/index.d.ts +0 -1
- package/{src → dist/src}/utils/async-iterable/map-async-iteratable.d.ts +0 -1
- package/{src → dist/src}/utils/async-iterable/tap-async-iteratable.d.ts +0 -1
- package/{src → dist/src}/utils/binary-extensions.d.ts +0 -1
- package/{src → dist/src}/utils/calculate-hash-for-create-nodes.d.ts +0 -1
- package/{src → dist/src}/utils/catalog/index.d.ts +0 -1
- package/{src → dist/src}/utils/catalog/manager-factory.d.ts +0 -1
- package/{src → dist/src}/utils/catalog/manager.d.ts +0 -1
- package/{src → dist/src}/utils/catalog/pnpm-manager.d.ts +0 -1
- package/{src → dist/src}/utils/catalog/types.d.ts +0 -1
- package/{src → dist/src}/utils/catalog/yarn-manager.d.ts +0 -1
- package/{src → dist/src}/utils/config-utils.d.ts +0 -1
- package/{src → dist/src}/utils/convert-nx-executor.d.ts +0 -1
- package/{src → dist/src}/utils/find-plugin-for-config-file.d.ts +0 -1
- package/dist/src/utils/find-plugin-for-config-file.js +28 -0
- package/{src → dist/src}/utils/get-named-inputs.d.ts +0 -1
- package/{src → dist/src}/utils/get-workspace-layout.d.ts +0 -1
- package/{src → dist/src}/utils/invoke-nx-generator.d.ts +0 -1
- package/{src → dist/src}/utils/log-show-project-command.d.ts +0 -1
- package/{src → dist/src}/utils/move-dir.d.ts +0 -1
- package/{src → dist/src}/utils/names.d.ts +0 -1
- package/{src → dist/src}/utils/offset-from-root.d.ts +0 -1
- package/{src → dist/src}/utils/package-json.d.ts +0 -1
- package/{src → dist/src}/utils/replace-package.d.ts +0 -1
- package/{src → dist/src}/utils/replace-project-configuration-with-plugin.d.ts +0 -1
- package/{src → dist/src}/utils/rxjs-for-await.d.ts +0 -1
- package/{src → dist/src}/utils/semver.d.ts +0 -1
- package/{src → dist/src}/utils/string-change.d.ts +0 -1
- package/{src → dist/src}/utils/string-utils.d.ts +0 -1
- package/{src → dist/src}/utils/versions.d.ts +0 -1
- package/{testing.d.ts → dist/testing.d.ts} +0 -1
- package/migrations.json +9 -3
- package/package.json +55 -5
- package/assets.json +0 -15
- package/index.d.ts.map +0 -1
- package/internal.d.ts +0 -2
- package/internal.d.ts.map +0 -1
- package/internal.js +0 -8
- package/ngcli-adapter.d.ts.map +0 -1
- package/project.json +0 -14
- package/public-api.d.ts.map +0 -1
- package/src/executors/parse-target-string.d.ts.map +0 -1
- package/src/executors/read-target-options.d.ts.map +0 -1
- package/src/generators/artifact-name-and-directory-utils.d.ts.map +0 -1
- package/src/generators/e2e-web-server-info-utils.d.ts.map +0 -1
- package/src/generators/executor-options-utils.d.ts.map +0 -1
- package/src/generators/format-files.d.ts.map +0 -1
- package/src/generators/generate-files.d.ts.map +0 -1
- package/src/generators/plugin-migrations/aggregate-log-util.d.ts.map +0 -1
- package/src/generators/plugin-migrations/executor-to-plugin-migrator.d.ts.map +0 -1
- package/src/generators/plugin-migrations/plugin-migration-utils.d.ts.map +0 -1
- package/src/generators/project-name-and-root-utils.d.ts.map +0 -1
- package/src/generators/prompt.d.ts.map +0 -1
- package/src/generators/run-tasks-in-serial.d.ts.map +0 -1
- package/src/generators/target-defaults-utils.d.ts.map +0 -1
- package/src/generators/to-js.d.ts.map +0 -1
- package/src/generators/typescript/insert-import.d.ts.map +0 -1
- package/src/generators/typescript/insert-statement.d.ts.map +0 -1
- package/src/generators/update-ts-configs-to-js.d.ts.map +0 -1
- package/src/generators/visit-not-ignored-files.d.ts.map +0 -1
- package/src/tasks/install-packages-task.d.ts.map +0 -1
- package/src/utils/add-plugin.d.ts.map +0 -1
- package/src/utils/async-iterable/combine-async-iterables.d.ts.map +0 -1
- package/src/utils/async-iterable/create-async-iterable.d.ts.map +0 -1
- package/src/utils/async-iterable/index.d.ts.map +0 -1
- package/src/utils/async-iterable/map-async-iteratable.d.ts.map +0 -1
- package/src/utils/async-iterable/tap-async-iteratable.d.ts.map +0 -1
- package/src/utils/binary-extensions.d.ts.map +0 -1
- package/src/utils/calculate-hash-for-create-nodes.d.ts.map +0 -1
- package/src/utils/catalog/index.d.ts.map +0 -1
- package/src/utils/catalog/manager-factory.d.ts.map +0 -1
- package/src/utils/catalog/manager.d.ts.map +0 -1
- package/src/utils/catalog/pnpm-manager.d.ts.map +0 -1
- package/src/utils/catalog/types.d.ts.map +0 -1
- package/src/utils/catalog/yarn-manager.d.ts.map +0 -1
- package/src/utils/config-utils.d.ts.map +0 -1
- package/src/utils/convert-nx-executor.d.ts.map +0 -1
- package/src/utils/find-plugin-for-config-file.d.ts.map +0 -1
- package/src/utils/find-plugin-for-config-file.js +0 -61
- package/src/utils/get-named-inputs.d.ts.map +0 -1
- package/src/utils/get-workspace-layout.d.ts.map +0 -1
- package/src/utils/invoke-nx-generator.d.ts.map +0 -1
- package/src/utils/log-show-project-command.d.ts.map +0 -1
- package/src/utils/move-dir.d.ts.map +0 -1
- package/src/utils/names.d.ts.map +0 -1
- package/src/utils/offset-from-root.d.ts.map +0 -1
- package/src/utils/package-json.d.ts.map +0 -1
- package/src/utils/replace-package.d.ts.map +0 -1
- package/src/utils/replace-project-configuration-with-plugin.d.ts.map +0 -1
- package/src/utils/rxjs-for-await.d.ts.map +0 -1
- package/src/utils/semver.d.ts.map +0 -1
- package/src/utils/string-change.d.ts.map +0 -1
- package/src/utils/string-utils.d.ts.map +0 -1
- package/src/utils/versions.d.ts.map +0 -1
- package/testing.d.ts.map +0 -1
- /package/{LICENSE → dist/LICENSE} +0 -0
- /package/{index.js → dist/index.js} +0 -0
- /package/{ngcli-adapter.js → dist/ngcli-adapter.js} +0 -0
- /package/{public-api.js → dist/public-api.js} +0 -0
- /package/{src → dist/src}/executors/parse-target-string.js +0 -0
- /package/{src → dist/src}/executors/read-target-options.js +0 -0
- /package/{src → dist/src}/generators/artifact-name-and-directory-utils.js +0 -0
- /package/{src → dist/src}/generators/e2e-web-server-info-utils.js +0 -0
- /package/{src → dist/src}/generators/executor-options-utils.js +0 -0
- /package/{src → dist/src}/generators/generate-files.js +0 -0
- /package/{src → dist/src}/generators/plugin-migrations/aggregate-log-util.js +0 -0
- /package/{src → dist/src}/generators/plugin-migrations/executor-to-plugin-migrator.js +0 -0
- /package/{src → dist/src}/generators/plugin-migrations/plugin-migration-utils.js +0 -0
- /package/{src → dist/src}/generators/project-name-and-root-utils.js +0 -0
- /package/{src → dist/src}/generators/prompt.js +0 -0
- /package/{src → dist/src}/generators/run-tasks-in-serial.js +0 -0
- /package/{src → dist/src}/generators/to-js.js +0 -0
- /package/{src → dist/src}/generators/typescript/insert-import.js +0 -0
- /package/{src → dist/src}/generators/typescript/insert-statement.js +0 -0
- /package/{src → dist/src}/generators/update-ts-configs-to-js.js +0 -0
- /package/{src → dist/src}/generators/visit-not-ignored-files.js +0 -0
- /package/{src → dist/src}/tasks/install-packages-task.js +0 -0
- /package/{src → dist/src}/utils/add-plugin.js +0 -0
- /package/{src → dist/src}/utils/async-iterable/combine-async-iterables.js +0 -0
- /package/{src → dist/src}/utils/async-iterable/create-async-iterable.js +0 -0
- /package/{src → dist/src}/utils/async-iterable/index.js +0 -0
- /package/{src → dist/src}/utils/async-iterable/map-async-iteratable.js +0 -0
- /package/{src → dist/src}/utils/async-iterable/tap-async-iteratable.js +0 -0
- /package/{src → dist/src}/utils/binary-extensions.js +0 -0
- /package/{src → dist/src}/utils/calculate-hash-for-create-nodes.js +0 -0
- /package/{src → dist/src}/utils/catalog/index.js +0 -0
- /package/{src → dist/src}/utils/catalog/manager-factory.js +0 -0
- /package/{src → dist/src}/utils/catalog/manager.js +0 -0
- /package/{src → dist/src}/utils/catalog/pnpm-manager.js +0 -0
- /package/{src → dist/src}/utils/catalog/types.js +0 -0
- /package/{src → dist/src}/utils/catalog/yarn-manager.js +0 -0
- /package/{src → dist/src}/utils/config-utils.js +0 -0
- /package/{src → dist/src}/utils/convert-nx-executor.js +0 -0
- /package/{src → dist/src}/utils/get-named-inputs.js +0 -0
- /package/{src → dist/src}/utils/get-workspace-layout.js +0 -0
- /package/{src → dist/src}/utils/invoke-nx-generator.js +0 -0
- /package/{src → dist/src}/utils/log-show-project-command.js +0 -0
- /package/{src → dist/src}/utils/move-dir.js +0 -0
- /package/{src → dist/src}/utils/names.js +0 -0
- /package/{src → dist/src}/utils/offset-from-root.js +0 -0
- /package/{src → dist/src}/utils/package-json.js +0 -0
- /package/{src → dist/src}/utils/replace-package.js +0 -0
- /package/{src → dist/src}/utils/replace-project-configuration-with-plugin.js +0 -0
- /package/{src → dist/src}/utils/rxjs-for-await.js +0 -0
- /package/{src → dist/src}/utils/semver.js +0 -0
- /package/{src → dist/src}/utils/string-change.js +0 -0
- /package/{src → dist/src}/utils/string-utils.js +0 -0
- /package/{src → dist/src}/utils/versions.js +0 -0
- /package/{testing.js → dist/testing.js} +0 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export { signalToCode, createProjectRootMappingsFromProjectConfigurations, PluginCache, safeWriteFileCache, } from 'nx/src/devkit-internals';
|
|
2
|
+
export { determineArtifactNameAndDirectoryOptions, getRelativeCwd, type FileExtensionType, } from './src/generators/artifact-name-and-directory-utils';
|
|
3
|
+
export { getE2EWebServerInfo, type E2EWebServerDetails, } from './src/generators/e2e-web-server-info-utils';
|
|
4
|
+
export { forEachExecutorOptions } from './src/generators/executor-options-utils';
|
|
5
|
+
export { AggregatedLog } from './src/generators/plugin-migrations/aggregate-log-util';
|
|
6
|
+
export { migrateProjectExecutorsToPlugin, migrateProjectExecutorsToPluginV1, NoTargetsToMigrateError, type InferredTargetConfiguration, } from './src/generators/plugin-migrations/executor-to-plugin-migrator';
|
|
7
|
+
export { processTargetOutputs, deleteMatchingProperties, toProjectRelativePath, } from './src/generators/plugin-migrations/plugin-migration-utils';
|
|
8
|
+
export { determineProjectNameAndRootOptions, ensureRootProjectName, resolveImportPath, } from './src/generators/project-name-and-root-utils';
|
|
9
|
+
export { promptWhenInteractive } from './src/generators/prompt';
|
|
10
|
+
export { addBuildTargetDefaults, addE2eCiTargetDefaults, } from './src/generators/target-defaults-utils';
|
|
11
|
+
export { addPlugin } from './src/utils/add-plugin';
|
|
12
|
+
export { createAsyncIterable, combineAsyncIterables, mapAsyncIterable, } from './src/utils/async-iterable';
|
|
13
|
+
export { calculateHashForCreateNodes, calculateHashesForCreateNodes, } from './src/utils/calculate-hash-for-create-nodes';
|
|
14
|
+
export { getCatalogManager } from './src/utils/catalog';
|
|
15
|
+
export { loadConfigFile, clearRequireCache } from './src/utils/config-utils';
|
|
16
|
+
export { findPluginForConfigFile } from './src/utils/find-plugin-for-config-file';
|
|
17
|
+
export { getNamedInputs } from './src/utils/get-named-inputs';
|
|
18
|
+
export { logShowProjectCommand } from './src/utils/log-show-project-command';
|
|
19
|
+
export { eachValueFrom } from './src/utils/rxjs-for-await';
|
|
20
|
+
export { checkAndCleanWithSemver } from './src/utils/semver';
|
|
21
|
+
export { camelize, capitalize, classify, dasherize, } from './src/utils/string-utils';
|
package/dist/internal.js
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.dasherize = exports.classify = exports.capitalize = exports.camelize = exports.checkAndCleanWithSemver = exports.eachValueFrom = exports.logShowProjectCommand = exports.getNamedInputs = exports.findPluginForConfigFile = exports.clearRequireCache = exports.loadConfigFile = exports.getCatalogManager = exports.calculateHashesForCreateNodes = exports.calculateHashForCreateNodes = exports.mapAsyncIterable = exports.combineAsyncIterables = exports.createAsyncIterable = exports.addPlugin = exports.addE2eCiTargetDefaults = exports.addBuildTargetDefaults = exports.promptWhenInteractive = exports.resolveImportPath = exports.ensureRootProjectName = exports.determineProjectNameAndRootOptions = exports.toProjectRelativePath = exports.deleteMatchingProperties = exports.processTargetOutputs = exports.NoTargetsToMigrateError = exports.migrateProjectExecutorsToPluginV1 = exports.migrateProjectExecutorsToPlugin = exports.AggregatedLog = exports.forEachExecutorOptions = exports.getE2EWebServerInfo = exports.getRelativeCwd = exports.determineArtifactNameAndDirectoryOptions = exports.safeWriteFileCache = exports.PluginCache = exports.createProjectRootMappingsFromProjectConfigurations = exports.signalToCode = void 0;
|
|
4
|
+
var devkit_internals_1 = require("nx/src/devkit-internals");
|
|
5
|
+
Object.defineProperty(exports, "signalToCode", { enumerable: true, get: function () { return devkit_internals_1.signalToCode; } });
|
|
6
|
+
Object.defineProperty(exports, "createProjectRootMappingsFromProjectConfigurations", { enumerable: true, get: function () { return devkit_internals_1.createProjectRootMappingsFromProjectConfigurations; } });
|
|
7
|
+
Object.defineProperty(exports, "PluginCache", { enumerable: true, get: function () { return devkit_internals_1.PluginCache; } });
|
|
8
|
+
Object.defineProperty(exports, "safeWriteFileCache", { enumerable: true, get: function () { return devkit_internals_1.safeWriteFileCache; } });
|
|
9
|
+
// Generators
|
|
10
|
+
var artifact_name_and_directory_utils_1 = require("./src/generators/artifact-name-and-directory-utils");
|
|
11
|
+
Object.defineProperty(exports, "determineArtifactNameAndDirectoryOptions", { enumerable: true, get: function () { return artifact_name_and_directory_utils_1.determineArtifactNameAndDirectoryOptions; } });
|
|
12
|
+
Object.defineProperty(exports, "getRelativeCwd", { enumerable: true, get: function () { return artifact_name_and_directory_utils_1.getRelativeCwd; } });
|
|
13
|
+
var e2e_web_server_info_utils_1 = require("./src/generators/e2e-web-server-info-utils");
|
|
14
|
+
Object.defineProperty(exports, "getE2EWebServerInfo", { enumerable: true, get: function () { return e2e_web_server_info_utils_1.getE2EWebServerInfo; } });
|
|
15
|
+
var executor_options_utils_1 = require("./src/generators/executor-options-utils");
|
|
16
|
+
Object.defineProperty(exports, "forEachExecutorOptions", { enumerable: true, get: function () { return executor_options_utils_1.forEachExecutorOptions; } });
|
|
17
|
+
var aggregate_log_util_1 = require("./src/generators/plugin-migrations/aggregate-log-util");
|
|
18
|
+
Object.defineProperty(exports, "AggregatedLog", { enumerable: true, get: function () { return aggregate_log_util_1.AggregatedLog; } });
|
|
19
|
+
var executor_to_plugin_migrator_1 = require("./src/generators/plugin-migrations/executor-to-plugin-migrator");
|
|
20
|
+
Object.defineProperty(exports, "migrateProjectExecutorsToPlugin", { enumerable: true, get: function () { return executor_to_plugin_migrator_1.migrateProjectExecutorsToPlugin; } });
|
|
21
|
+
Object.defineProperty(exports, "migrateProjectExecutorsToPluginV1", { enumerable: true, get: function () { return executor_to_plugin_migrator_1.migrateProjectExecutorsToPluginV1; } });
|
|
22
|
+
Object.defineProperty(exports, "NoTargetsToMigrateError", { enumerable: true, get: function () { return executor_to_plugin_migrator_1.NoTargetsToMigrateError; } });
|
|
23
|
+
var plugin_migration_utils_1 = require("./src/generators/plugin-migrations/plugin-migration-utils");
|
|
24
|
+
Object.defineProperty(exports, "processTargetOutputs", { enumerable: true, get: function () { return plugin_migration_utils_1.processTargetOutputs; } });
|
|
25
|
+
Object.defineProperty(exports, "deleteMatchingProperties", { enumerable: true, get: function () { return plugin_migration_utils_1.deleteMatchingProperties; } });
|
|
26
|
+
Object.defineProperty(exports, "toProjectRelativePath", { enumerable: true, get: function () { return plugin_migration_utils_1.toProjectRelativePath; } });
|
|
27
|
+
var project_name_and_root_utils_1 = require("./src/generators/project-name-and-root-utils");
|
|
28
|
+
Object.defineProperty(exports, "determineProjectNameAndRootOptions", { enumerable: true, get: function () { return project_name_and_root_utils_1.determineProjectNameAndRootOptions; } });
|
|
29
|
+
Object.defineProperty(exports, "ensureRootProjectName", { enumerable: true, get: function () { return project_name_and_root_utils_1.ensureRootProjectName; } });
|
|
30
|
+
Object.defineProperty(exports, "resolveImportPath", { enumerable: true, get: function () { return project_name_and_root_utils_1.resolveImportPath; } });
|
|
31
|
+
var prompt_1 = require("./src/generators/prompt");
|
|
32
|
+
Object.defineProperty(exports, "promptWhenInteractive", { enumerable: true, get: function () { return prompt_1.promptWhenInteractive; } });
|
|
33
|
+
var target_defaults_utils_1 = require("./src/generators/target-defaults-utils");
|
|
34
|
+
Object.defineProperty(exports, "addBuildTargetDefaults", { enumerable: true, get: function () { return target_defaults_utils_1.addBuildTargetDefaults; } });
|
|
35
|
+
Object.defineProperty(exports, "addE2eCiTargetDefaults", { enumerable: true, get: function () { return target_defaults_utils_1.addE2eCiTargetDefaults; } });
|
|
36
|
+
// Utils
|
|
37
|
+
var add_plugin_1 = require("./src/utils/add-plugin");
|
|
38
|
+
Object.defineProperty(exports, "addPlugin", { enumerable: true, get: function () { return add_plugin_1.addPlugin; } });
|
|
39
|
+
var async_iterable_1 = require("./src/utils/async-iterable");
|
|
40
|
+
Object.defineProperty(exports, "createAsyncIterable", { enumerable: true, get: function () { return async_iterable_1.createAsyncIterable; } });
|
|
41
|
+
Object.defineProperty(exports, "combineAsyncIterables", { enumerable: true, get: function () { return async_iterable_1.combineAsyncIterables; } });
|
|
42
|
+
Object.defineProperty(exports, "mapAsyncIterable", { enumerable: true, get: function () { return async_iterable_1.mapAsyncIterable; } });
|
|
43
|
+
var calculate_hash_for_create_nodes_1 = require("./src/utils/calculate-hash-for-create-nodes");
|
|
44
|
+
Object.defineProperty(exports, "calculateHashForCreateNodes", { enumerable: true, get: function () { return calculate_hash_for_create_nodes_1.calculateHashForCreateNodes; } });
|
|
45
|
+
Object.defineProperty(exports, "calculateHashesForCreateNodes", { enumerable: true, get: function () { return calculate_hash_for_create_nodes_1.calculateHashesForCreateNodes; } });
|
|
46
|
+
var catalog_1 = require("./src/utils/catalog");
|
|
47
|
+
Object.defineProperty(exports, "getCatalogManager", { enumerable: true, get: function () { return catalog_1.getCatalogManager; } });
|
|
48
|
+
var config_utils_1 = require("./src/utils/config-utils");
|
|
49
|
+
Object.defineProperty(exports, "loadConfigFile", { enumerable: true, get: function () { return config_utils_1.loadConfigFile; } });
|
|
50
|
+
Object.defineProperty(exports, "clearRequireCache", { enumerable: true, get: function () { return config_utils_1.clearRequireCache; } });
|
|
51
|
+
var find_plugin_for_config_file_1 = require("./src/utils/find-plugin-for-config-file");
|
|
52
|
+
Object.defineProperty(exports, "findPluginForConfigFile", { enumerable: true, get: function () { return find_plugin_for_config_file_1.findPluginForConfigFile; } });
|
|
53
|
+
var get_named_inputs_1 = require("./src/utils/get-named-inputs");
|
|
54
|
+
Object.defineProperty(exports, "getNamedInputs", { enumerable: true, get: function () { return get_named_inputs_1.getNamedInputs; } });
|
|
55
|
+
var log_show_project_command_1 = require("./src/utils/log-show-project-command");
|
|
56
|
+
Object.defineProperty(exports, "logShowProjectCommand", { enumerable: true, get: function () { return log_show_project_command_1.logShowProjectCommand; } });
|
|
57
|
+
var rxjs_for_await_1 = require("./src/utils/rxjs-for-await");
|
|
58
|
+
Object.defineProperty(exports, "eachValueFrom", { enumerable: true, get: function () { return rxjs_for_await_1.eachValueFrom; } });
|
|
59
|
+
var semver_1 = require("./src/utils/semver");
|
|
60
|
+
Object.defineProperty(exports, "checkAndCleanWithSemver", { enumerable: true, get: function () { return semver_1.checkAndCleanWithSemver; } });
|
|
61
|
+
var string_utils_1 = require("./src/utils/string-utils");
|
|
62
|
+
Object.defineProperty(exports, "camelize", { enumerable: true, get: function () { return string_utils_1.camelize; } });
|
|
63
|
+
Object.defineProperty(exports, "capitalize", { enumerable: true, get: function () { return string_utils_1.capitalize; } });
|
|
64
|
+
Object.defineProperty(exports, "classify", { enumerable: true, get: function () { return string_utils_1.classify; } });
|
|
65
|
+
Object.defineProperty(exports, "dasherize", { enumerable: true, get: function () { return string_utils_1.dasherize; } });
|
|
@@ -5,4 +5,3 @@ import type { ExecutorContext, Target } from 'nx/src/devkit-exports';
|
|
|
5
5
|
* Works as if you invoked the target yourself without passing any command lint overrides.
|
|
6
6
|
*/
|
|
7
7
|
export declare function readTargetOptions<T = any>({ project, target, configuration }: Target, context: ExecutorContext): T;
|
|
8
|
-
//# sourceMappingURL=read-target-options.d.ts.map
|
|
@@ -21,4 +21,3 @@ export interface E2EWebServerDetails {
|
|
|
21
21
|
}
|
|
22
22
|
export declare function getE2EWebServerInfo(tree: Tree, projectName: string, pluginOptions: E2EWebServerPluginOptions, defaultValues: E2EWebServerDefaultValues, isPluginBeingAdded: boolean): Promise<E2EWebServerDetails>;
|
|
23
23
|
export {};
|
|
24
|
-
//# sourceMappingURL=e2e-web-server-info-utils.d.ts.map
|
|
@@ -32,7 +32,7 @@ async function formatFiles(tree, options = {}) {
|
|
|
32
32
|
}
|
|
33
33
|
let prettier;
|
|
34
34
|
try {
|
|
35
|
-
prettier = await
|
|
35
|
+
prettier = await import('prettier');
|
|
36
36
|
/**
|
|
37
37
|
* Even after we discovered prettier in node_modules, we need to be sure that the user is intentionally using prettier
|
|
38
38
|
* before proceeding to format with it.
|
|
@@ -28,4 +28,3 @@ export declare function migrateProjectExecutorsToPluginV1<T>(tree: Tree, project
|
|
|
28
28
|
skipTargetFilter?: SkipTargetFilter;
|
|
29
29
|
}>, specificProjectToMigrate?: string): Promise<Map<string, Record<string, string>>>;
|
|
30
30
|
export {};
|
|
31
|
-
//# sourceMappingURL=executor-to-plugin-migrator.d.ts.map
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
import { type TargetConfiguration, type Tree } from 'nx/src/devkit-exports';
|
|
2
2
|
export declare function addBuildTargetDefaults(tree: Tree, executorName: string, buildTargetName?: string, extraInputs?: TargetConfiguration['inputs']): void;
|
|
3
3
|
export declare function addE2eCiTargetDefaults(tree: Tree, e2ePlugin: string, buildTarget: string, pathToE2EConfigFile: string): Promise<void>;
|
|
4
|
-
//# sourceMappingURL=target-defaults-utils.d.ts.map
|
|
@@ -1,37 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
-
var ownKeys = function(o) {
|
|
20
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
-
var ar = [];
|
|
22
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
-
return ar;
|
|
24
|
-
};
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
35
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
3
|
exports.addBuildTargetDefaults = addBuildTargetDefaults;
|
|
37
4
|
exports.addE2eCiTargetDefaults = addE2eCiTargetDefaults;
|
|
@@ -61,7 +28,7 @@ async function addE2eCiTargetDefaults(tree, e2ePlugin, buildTarget, pathToE2ECon
|
|
|
61
28
|
if (!e2ePluginRegistrations.length) {
|
|
62
29
|
return;
|
|
63
30
|
}
|
|
64
|
-
const resolvedE2ePlugin = await
|
|
31
|
+
const resolvedE2ePlugin = await import(e2ePlugin);
|
|
65
32
|
const e2ePluginGlob = resolvedE2ePlugin.createNodesV2?.[0] ?? resolvedE2ePlugin.createNodes?.[0];
|
|
66
33
|
let foundPluginForApplication;
|
|
67
34
|
for (let i = 0; i < e2ePluginRegistrations.length; i++) {
|
|
@@ -3,4 +3,3 @@ import type { Tree } from 'nx/src/devkit-exports';
|
|
|
3
3
|
* Utility to act on all files in a tree that are not ignored by git.
|
|
4
4
|
*/
|
|
5
5
|
export declare function visitNotIgnoredFiles(tree: Tree, dirPath: string, visitor: (path: string) => void): void;
|
|
6
|
-
//# sourceMappingURL=visit-not-ignored-files.d.ts.map
|
|
@@ -0,0 +1,261 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DEVKIT_INTERNAL_SYMBOLS = void 0;
|
|
4
|
+
exports.default = updateDevkitDeepImports;
|
|
5
|
+
exports.rewriteDevkitDeepImports = rewriteDevkitDeepImports;
|
|
6
|
+
const devkit_exports_1 = require("nx/src/devkit-exports");
|
|
7
|
+
const format_files_1 = require("../../generators/format-files");
|
|
8
|
+
const visit_not_ignored_files_1 = require("../../generators/visit-not-ignored-files");
|
|
9
|
+
const package_json_1 = require("../../utils/package-json");
|
|
10
|
+
const string_change_1 = require("../../utils/string-change");
|
|
11
|
+
const versions_1 = require("../../utils/versions");
|
|
12
|
+
const TS_EXTENSIONS = ['.ts', '.tsx', '.cts', '.mts'];
|
|
13
|
+
const DEEP_IMPORT_PREFIX = '@nx/devkit/src/';
|
|
14
|
+
const PUBLIC_SPECIFIER = '@nx/devkit';
|
|
15
|
+
const INTERNAL_SPECIFIER = '@nx/devkit/internal';
|
|
16
|
+
// Names re-exported from `@nx/devkit/internal` (see packages/devkit/internal.ts
|
|
17
|
+
// at the time this migration was authored). Anything imported from a
|
|
18
|
+
// `@nx/devkit/src/...` path whose name is NOT in this set is assumed to be
|
|
19
|
+
// part of the stable public `@nx/devkit` API.
|
|
20
|
+
exports.DEVKIT_INTERNAL_SYMBOLS = new Set([
|
|
21
|
+
'signalToCode',
|
|
22
|
+
'createProjectRootMappingsFromProjectConfigurations',
|
|
23
|
+
'PluginCache',
|
|
24
|
+
'safeWriteFileCache',
|
|
25
|
+
'determineArtifactNameAndDirectoryOptions',
|
|
26
|
+
'getRelativeCwd',
|
|
27
|
+
'FileExtensionType',
|
|
28
|
+
'getE2EWebServerInfo',
|
|
29
|
+
'E2EWebServerDetails',
|
|
30
|
+
'forEachExecutorOptions',
|
|
31
|
+
'AggregatedLog',
|
|
32
|
+
'migrateProjectExecutorsToPlugin',
|
|
33
|
+
'migrateProjectExecutorsToPluginV1',
|
|
34
|
+
'NoTargetsToMigrateError',
|
|
35
|
+
'InferredTargetConfiguration',
|
|
36
|
+
'processTargetOutputs',
|
|
37
|
+
'deleteMatchingProperties',
|
|
38
|
+
'toProjectRelativePath',
|
|
39
|
+
'determineProjectNameAndRootOptions',
|
|
40
|
+
'ensureRootProjectName',
|
|
41
|
+
'resolveImportPath',
|
|
42
|
+
'promptWhenInteractive',
|
|
43
|
+
'addBuildTargetDefaults',
|
|
44
|
+
'addE2eCiTargetDefaults',
|
|
45
|
+
'addPlugin',
|
|
46
|
+
'createAsyncIterable',
|
|
47
|
+
'combineAsyncIterables',
|
|
48
|
+
'mapAsyncIterable',
|
|
49
|
+
'calculateHashForCreateNodes',
|
|
50
|
+
'calculateHashesForCreateNodes',
|
|
51
|
+
'getCatalogManager',
|
|
52
|
+
'loadConfigFile',
|
|
53
|
+
'clearRequireCache',
|
|
54
|
+
'findPluginForConfigFile',
|
|
55
|
+
'getNamedInputs',
|
|
56
|
+
'logShowProjectCommand',
|
|
57
|
+
'eachValueFrom',
|
|
58
|
+
'checkAndCleanWithSemver',
|
|
59
|
+
'camelize',
|
|
60
|
+
'capitalize',
|
|
61
|
+
'classify',
|
|
62
|
+
'dasherize',
|
|
63
|
+
]);
|
|
64
|
+
const FALLBACK_RE = /(['"])@nx\/devkit\/src\/[^'"\n]+?\1/g;
|
|
65
|
+
let ts;
|
|
66
|
+
async function updateDevkitDeepImports(tree) {
|
|
67
|
+
let touchedCount = 0;
|
|
68
|
+
(0, visit_not_ignored_files_1.visitNotIgnoredFiles)(tree, '.', (filePath) => {
|
|
69
|
+
if (!TS_EXTENSIONS.some((ext) => filePath.endsWith(ext))) {
|
|
70
|
+
return;
|
|
71
|
+
}
|
|
72
|
+
const original = tree.read(filePath, 'utf-8');
|
|
73
|
+
if (!original || !original.includes(DEEP_IMPORT_PREFIX)) {
|
|
74
|
+
return;
|
|
75
|
+
}
|
|
76
|
+
const updated = rewriteDevkitDeepImports(original);
|
|
77
|
+
if (updated !== original) {
|
|
78
|
+
tree.write(filePath, updated);
|
|
79
|
+
touchedCount += 1;
|
|
80
|
+
}
|
|
81
|
+
});
|
|
82
|
+
if (touchedCount > 0) {
|
|
83
|
+
devkit_exports_1.logger.info(`Rewrote @nx/devkit deep imports in ${touchedCount} file(s).`);
|
|
84
|
+
}
|
|
85
|
+
await (0, format_files_1.formatFiles)(tree);
|
|
86
|
+
}
|
|
87
|
+
function rewriteDevkitDeepImports(source) {
|
|
88
|
+
ts ??= (0, package_json_1.ensurePackage)('typescript', versions_1.typescriptVersion);
|
|
89
|
+
const sourceFile = ts.createSourceFile('tmp.ts', source, ts.ScriptTarget.Latest,
|
|
90
|
+
/* setParentNodes */ true, ts.ScriptKind.TSX);
|
|
91
|
+
const changes = [];
|
|
92
|
+
for (const stmt of sourceFile.statements) {
|
|
93
|
+
if (!ts.isImportDeclaration(stmt))
|
|
94
|
+
continue;
|
|
95
|
+
if (!ts.isStringLiteral(stmt.moduleSpecifier))
|
|
96
|
+
continue;
|
|
97
|
+
if (!stmt.moduleSpecifier.text.startsWith(DEEP_IMPORT_PREFIX))
|
|
98
|
+
continue;
|
|
99
|
+
const replacement = buildReplacement(stmt, sourceFile);
|
|
100
|
+
changes.push({
|
|
101
|
+
type: string_change_1.ChangeType.Delete,
|
|
102
|
+
start: stmt.getStart(sourceFile),
|
|
103
|
+
length: stmt.getEnd() - stmt.getStart(sourceFile),
|
|
104
|
+
}, {
|
|
105
|
+
type: string_change_1.ChangeType.Insert,
|
|
106
|
+
index: stmt.getStart(sourceFile),
|
|
107
|
+
text: replacement,
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
let updated = changes.length > 0 ? (0, string_change_1.applyChangesToString)(source, changes) : source;
|
|
111
|
+
// Fallback: any remaining `@nx/devkit/src/...` specifiers (default imports,
|
|
112
|
+
// namespace imports, side-effect imports, dynamic `import(...)`, `require(...)`
|
|
113
|
+
// calls, etc.) get rewritten to `/internal`. We can't bucket by symbol for
|
|
114
|
+
// those forms, so `/internal` is the safe default since it re-exports every
|
|
115
|
+
// symbol that was deep-importable.
|
|
116
|
+
updated = updated.replace(FALLBACK_RE, (_match, quote) => `${quote}${INTERNAL_SPECIFIER}${quote}`);
|
|
117
|
+
// Final pass: collapse any duplicate `@nx/devkit` and `@nx/devkit/internal`
|
|
118
|
+
// named-only imports into a single declaration. This handles both the
|
|
119
|
+
// imports we just emitted AND any that the user already had, so we never
|
|
120
|
+
// leave the file with two `from '@nx/devkit'` lines.
|
|
121
|
+
updated = collapseDevkitImports(updated);
|
|
122
|
+
return updated;
|
|
123
|
+
}
|
|
124
|
+
function collapseDevkitImports(source) {
|
|
125
|
+
const sourceFile = ts.createSourceFile('tmp.ts', source, ts.ScriptTarget.Latest,
|
|
126
|
+
/* setParentNodes */ true, ts.ScriptKind.TSX);
|
|
127
|
+
const groups = new Map();
|
|
128
|
+
for (const stmt of sourceFile.statements) {
|
|
129
|
+
if (!ts.isImportDeclaration(stmt))
|
|
130
|
+
continue;
|
|
131
|
+
if (!ts.isStringLiteral(stmt.moduleSpecifier))
|
|
132
|
+
continue;
|
|
133
|
+
const specifier = stmt.moduleSpecifier.text;
|
|
134
|
+
if (specifier !== PUBLIC_SPECIFIER && specifier !== INTERNAL_SPECIFIER) {
|
|
135
|
+
continue;
|
|
136
|
+
}
|
|
137
|
+
const importClause = stmt.importClause;
|
|
138
|
+
if (!importClause)
|
|
139
|
+
continue; // skip side-effect imports
|
|
140
|
+
if (importClause.name)
|
|
141
|
+
continue; // skip default imports
|
|
142
|
+
const namedBindings = importClause.namedBindings;
|
|
143
|
+
if (!namedBindings || !ts.isNamedImports(namedBindings))
|
|
144
|
+
continue;
|
|
145
|
+
const typeOnly = !!importClause.isTypeOnly;
|
|
146
|
+
const key = `${specifier}\x00${typeOnly ? 'type' : 'value'}`;
|
|
147
|
+
if (!groups.has(key)) {
|
|
148
|
+
groups.set(key, { decls: [], specifier, typeOnly });
|
|
149
|
+
}
|
|
150
|
+
groups.get(key).decls.push(stmt);
|
|
151
|
+
}
|
|
152
|
+
const changes = [];
|
|
153
|
+
for (const { decls, specifier, typeOnly } of groups.values()) {
|
|
154
|
+
if (decls.length < 2)
|
|
155
|
+
continue;
|
|
156
|
+
const seen = new Set();
|
|
157
|
+
const merged = [];
|
|
158
|
+
for (const decl of decls) {
|
|
159
|
+
const named = decl.importClause.namedBindings;
|
|
160
|
+
for (const el of named.elements) {
|
|
161
|
+
const text = renderSpecifierFromNode(el, typeOnly);
|
|
162
|
+
if (!seen.has(text)) {
|
|
163
|
+
seen.add(text);
|
|
164
|
+
merged.push(text);
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
// Replace the first declaration with the merged one in place.
|
|
169
|
+
const first = decls[0];
|
|
170
|
+
changes.push({
|
|
171
|
+
type: string_change_1.ChangeType.Delete,
|
|
172
|
+
start: first.getStart(sourceFile),
|
|
173
|
+
length: first.getEnd() - first.getStart(sourceFile),
|
|
174
|
+
}, {
|
|
175
|
+
type: string_change_1.ChangeType.Insert,
|
|
176
|
+
index: first.getStart(sourceFile),
|
|
177
|
+
text: renderImport(merged, specifier, typeOnly),
|
|
178
|
+
});
|
|
179
|
+
// Delete every other declaration in this group (and consume one trailing
|
|
180
|
+
// newline so we don't leave behind a blank line that prettier has to clean
|
|
181
|
+
// up later).
|
|
182
|
+
for (let i = 1; i < decls.length; i++) {
|
|
183
|
+
const decl = decls[i];
|
|
184
|
+
const start = decl.getStart(sourceFile);
|
|
185
|
+
let end = decl.getEnd();
|
|
186
|
+
if (source[end] === '\n') {
|
|
187
|
+
end += 1;
|
|
188
|
+
}
|
|
189
|
+
else if (source[end] === '\r' && source[end + 1] === '\n') {
|
|
190
|
+
end += 2;
|
|
191
|
+
}
|
|
192
|
+
changes.push({
|
|
193
|
+
type: string_change_1.ChangeType.Delete,
|
|
194
|
+
start,
|
|
195
|
+
length: end - start,
|
|
196
|
+
});
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
return changes.length > 0 ? (0, string_change_1.applyChangesToString)(source, changes) : source;
|
|
200
|
+
}
|
|
201
|
+
function renderSpecifierFromNode(el, parentIsTypeOnly) {
|
|
202
|
+
const aliasText = el.propertyName ? ` as ${el.name.text}` : '';
|
|
203
|
+
const typePrefix = !parentIsTypeOnly && el.isTypeOnly ? 'type ' : '';
|
|
204
|
+
return `${typePrefix}${(el.propertyName ?? el.name).text}${aliasText}`;
|
|
205
|
+
}
|
|
206
|
+
function buildReplacement(decl, sourceFile) {
|
|
207
|
+
const importClause = decl.importClause;
|
|
208
|
+
// `import '@nx/devkit/src/...';` (side-effect) — no clause to bucket.
|
|
209
|
+
if (!importClause) {
|
|
210
|
+
return `import '${INTERNAL_SPECIFIER}';`;
|
|
211
|
+
}
|
|
212
|
+
const namedBindings = importClause.namedBindings;
|
|
213
|
+
const isNamedImport = namedBindings && ts.isNamedImports(namedBindings) && !importClause.name;
|
|
214
|
+
// Default / namespace / mixed-default-and-named — can't bucket reliably.
|
|
215
|
+
// Preserve the import shape, swap the specifier.
|
|
216
|
+
if (!isNamedImport) {
|
|
217
|
+
const before = source(decl, sourceFile).slice(0, decl.moduleSpecifier.getStart(sourceFile) - decl.getStart(sourceFile));
|
|
218
|
+
const after = source(decl, sourceFile).slice(decl.moduleSpecifier.getEnd() - decl.getStart(sourceFile));
|
|
219
|
+
return `${before}'${INTERNAL_SPECIFIER}'${after}`;
|
|
220
|
+
}
|
|
221
|
+
const isTypeOnlyImport = importClause.isTypeOnly;
|
|
222
|
+
const elements = namedBindings.elements;
|
|
223
|
+
const publik = [];
|
|
224
|
+
const internal = [];
|
|
225
|
+
for (const el of elements) {
|
|
226
|
+
bucketSpecifier(el, isTypeOnlyImport, publik, internal);
|
|
227
|
+
}
|
|
228
|
+
const lines = [];
|
|
229
|
+
if (publik.length > 0) {
|
|
230
|
+
lines.push(renderImport(publik, PUBLIC_SPECIFIER, isTypeOnlyImport));
|
|
231
|
+
}
|
|
232
|
+
if (internal.length > 0) {
|
|
233
|
+
lines.push(renderImport(internal, INTERNAL_SPECIFIER, isTypeOnlyImport));
|
|
234
|
+
}
|
|
235
|
+
if (lines.length === 0) {
|
|
236
|
+
// Defensive: empty `import {} from '...'` — point at /internal.
|
|
237
|
+
lines.push(`import {} from '${INTERNAL_SPECIFIER}';`);
|
|
238
|
+
}
|
|
239
|
+
return lines.join('\n');
|
|
240
|
+
}
|
|
241
|
+
function bucketSpecifier(el, parentIsTypeOnly, publik, internal) {
|
|
242
|
+
const lookupName = (el.propertyName ?? el.name).text;
|
|
243
|
+
const elementIsTypeOnly = el.isTypeOnly;
|
|
244
|
+
const aliasText = el.propertyName ? ` as ${el.name.text}` : '';
|
|
245
|
+
// Inline `type` is illegal when the parent import is already `import type`.
|
|
246
|
+
const typePrefix = !parentIsTypeOnly && elementIsTypeOnly ? 'type ' : '';
|
|
247
|
+
const text = `${typePrefix}${(el.propertyName ?? el.name).text}${aliasText}`;
|
|
248
|
+
if (exports.DEVKIT_INTERNAL_SYMBOLS.has(lookupName)) {
|
|
249
|
+
internal.push(text);
|
|
250
|
+
}
|
|
251
|
+
else {
|
|
252
|
+
publik.push(text);
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
function renderImport(specifiers, from, typeOnly) {
|
|
256
|
+
const prefix = typeOnly ? 'import type' : 'import';
|
|
257
|
+
return `${prefix} { ${specifiers.join(', ')} } from '${from}';`;
|
|
258
|
+
}
|
|
259
|
+
function source(decl, sourceFile) {
|
|
260
|
+
return sourceFile.text.slice(decl.getStart(sourceFile), decl.getEnd());
|
|
261
|
+
}
|
|
@@ -8,4 +8,3 @@ import { PackageManager, Tree } from 'nx/src/devkit-exports';
|
|
|
8
8
|
* unless install already ran this generator cycle.
|
|
9
9
|
*/
|
|
10
10
|
export declare function installPackagesTask(tree: Tree, ensureInstall?: boolean, cwd?: string, packageManager?: PackageManager): void;
|
|
11
|
-
//# sourceMappingURL=install-packages-task.d.ts.map
|
|
@@ -11,4 +11,3 @@ export declare function addPlugin<PluginOptions>(tree: Tree, graph: ProjectGraph
|
|
|
11
11
|
*/
|
|
12
12
|
export declare function addPluginV1<PluginOptions>(tree: Tree, graph: ProjectGraph, pluginName: string, createNodesTuple: CreateNodesV2<PluginOptions>, options: Partial<Record<keyof PluginOptions, PluginOptions[keyof PluginOptions][]>>, shouldUpdatePackageJsonScripts: boolean): Promise<void>;
|
|
13
13
|
export declare function generateCombinations<T>(input: Record<string, T[]>): Record<string, T>[];
|
|
14
|
-
//# sourceMappingURL=add-plugin.d.ts.map
|
|
@@ -5,4 +5,3 @@ export interface AsyncPushCallbacks<T> {
|
|
|
5
5
|
registerCleanup?: (cb: () => void | Promise<void>) => void;
|
|
6
6
|
}
|
|
7
7
|
export declare function createAsyncIterable<T = unknown>(listener: (ls: AsyncPushCallbacks<T>) => void): AsyncIterable<T>;
|
|
8
|
-
//# sourceMappingURL=create-async-iterable.d.ts.map
|
|
@@ -1,2 +1 @@
|
|
|
1
1
|
export declare function mapAsyncIterable<T = any, I = any, O = any>(data: AsyncIterable<T> | AsyncIterableIterator<T>, transform: (input: I, index?: number, data?: AsyncIterable<T> | AsyncIterableIterator<T>) => O): AsyncIterable<O> | AsyncIterableIterator<O>;
|
|
2
|
-
//# sourceMappingURL=map-async-iteratable.d.ts.map
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
import { CreateNodesContextV2 } from 'nx/src/devkit-exports';
|
|
2
2
|
export declare function calculateHashForCreateNodes(projectRoot: string, options: object, context: CreateNodesContextV2, additionalGlobs?: string[]): Promise<string>;
|
|
3
3
|
export declare function calculateHashesForCreateNodes(projectRoots: string[], options: object, context: CreateNodesContextV2, additionalGlobs?: string[][]): Promise<string[]>;
|
|
4
|
-
//# sourceMappingURL=calculate-hash-for-create-nodes.d.ts.map
|
|
@@ -7,4 +7,3 @@ export { type CatalogManager, getCatalogManager };
|
|
|
7
7
|
* Returns Map of package name -> catalog name (undefined for default catalog)
|
|
8
8
|
*/
|
|
9
9
|
export declare function getCatalogDependenciesFromPackageJson(tree: Tree, packageJsonPath: string, manager: CatalogManager): Map<string, string | undefined>;
|
|
10
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -3,4 +3,3 @@ import type { CatalogManager } from './manager';
|
|
|
3
3
|
* Factory function to get the appropriate catalog manager based on the package manager
|
|
4
4
|
*/
|
|
5
5
|
export declare function getCatalogManager(workspaceRoot: string): CatalogManager | null;
|
|
6
|
-
//# sourceMappingURL=manager-factory.d.ts.map
|