@nx/devkit 23.0.0-canary.20260429-0205b22 → 23.0.0-canary.20260504-e8aa612

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.
Files changed (179) hide show
  1. package/{index.d.ts → dist/index.d.ts} +0 -1
  2. package/dist/internal.d.ts +21 -0
  3. package/dist/internal.js +65 -0
  4. package/{ngcli-adapter.d.ts → dist/ngcli-adapter.d.ts} +0 -1
  5. package/{public-api.d.ts → dist/public-api.d.ts} +0 -1
  6. package/{src → dist/src}/executors/parse-target-string.d.ts +0 -1
  7. package/{src → dist/src}/executors/read-target-options.d.ts +0 -1
  8. package/{src → dist/src}/generators/artifact-name-and-directory-utils.d.ts +0 -1
  9. package/{src → dist/src}/generators/e2e-web-server-info-utils.d.ts +0 -1
  10. package/{src → dist/src}/generators/executor-options-utils.d.ts +0 -1
  11. package/{src → dist/src}/generators/format-files.d.ts +0 -1
  12. package/{src → dist/src}/generators/format-files.js +1 -1
  13. package/{src → dist/src}/generators/generate-files.d.ts +0 -1
  14. package/{src → dist/src}/generators/plugin-migrations/aggregate-log-util.d.ts +0 -1
  15. package/{src → dist/src}/generators/plugin-migrations/executor-to-plugin-migrator.d.ts +0 -1
  16. package/{src → dist/src}/generators/plugin-migrations/plugin-migration-utils.d.ts +0 -1
  17. package/{src → dist/src}/generators/project-name-and-root-utils.d.ts +0 -1
  18. package/{src → dist/src}/generators/prompt.d.ts +0 -1
  19. package/{src → dist/src}/generators/run-tasks-in-serial.d.ts +0 -1
  20. package/{src → dist/src}/generators/target-defaults-utils.d.ts +0 -1
  21. package/{src → dist/src}/generators/target-defaults-utils.js +1 -34
  22. package/{src → dist/src}/generators/to-js.d.ts +0 -1
  23. package/{src → dist/src}/generators/typescript/insert-import.d.ts +0 -1
  24. package/{src → dist/src}/generators/typescript/insert-statement.d.ts +0 -1
  25. package/{src → dist/src}/generators/update-ts-configs-to-js.d.ts +0 -1
  26. package/{src → dist/src}/generators/visit-not-ignored-files.d.ts +0 -1
  27. package/{src → dist/src}/tasks/install-packages-task.d.ts +0 -1
  28. package/{src → dist/src}/utils/add-plugin.d.ts +0 -1
  29. package/{src → dist/src}/utils/async-iterable/combine-async-iterables.d.ts +0 -1
  30. package/{src → dist/src}/utils/async-iterable/create-async-iterable.d.ts +0 -1
  31. package/{src → dist/src}/utils/async-iterable/index.d.ts +0 -1
  32. package/{src → dist/src}/utils/async-iterable/map-async-iteratable.d.ts +0 -1
  33. package/{src → dist/src}/utils/async-iterable/tap-async-iteratable.d.ts +0 -1
  34. package/{src → dist/src}/utils/binary-extensions.d.ts +0 -1
  35. package/{src → dist/src}/utils/calculate-hash-for-create-nodes.d.ts +0 -1
  36. package/{src → dist/src}/utils/catalog/index.d.ts +0 -1
  37. package/{src → dist/src}/utils/catalog/manager-factory.d.ts +0 -1
  38. package/{src → dist/src}/utils/catalog/manager.d.ts +0 -1
  39. package/{src → dist/src}/utils/catalog/pnpm-manager.d.ts +0 -1
  40. package/{src → dist/src}/utils/catalog/types.d.ts +0 -1
  41. package/{src → dist/src}/utils/catalog/yarn-manager.d.ts +0 -1
  42. package/{src → dist/src}/utils/config-utils.d.ts +0 -1
  43. package/{src → dist/src}/utils/convert-nx-executor.d.ts +0 -1
  44. package/{src → dist/src}/utils/find-plugin-for-config-file.d.ts +0 -1
  45. package/dist/src/utils/find-plugin-for-config-file.js +28 -0
  46. package/{src → dist/src}/utils/get-named-inputs.d.ts +0 -1
  47. package/{src → dist/src}/utils/get-workspace-layout.d.ts +0 -1
  48. package/{src → dist/src}/utils/invoke-nx-generator.d.ts +0 -1
  49. package/{src → dist/src}/utils/log-show-project-command.d.ts +0 -1
  50. package/{src → dist/src}/utils/move-dir.d.ts +0 -1
  51. package/{src → dist/src}/utils/names.d.ts +0 -1
  52. package/{src → dist/src}/utils/offset-from-root.d.ts +0 -1
  53. package/{src → dist/src}/utils/package-json.d.ts +0 -1
  54. package/{src → dist/src}/utils/replace-package.d.ts +0 -1
  55. package/{src → dist/src}/utils/replace-project-configuration-with-plugin.d.ts +0 -1
  56. package/{src → dist/src}/utils/rxjs-for-await.d.ts +0 -1
  57. package/{src → dist/src}/utils/semver.d.ts +0 -1
  58. package/{src → dist/src}/utils/string-change.d.ts +0 -1
  59. package/{src → dist/src}/utils/string-utils.d.ts +0 -1
  60. package/{src → dist/src}/utils/versions.d.ts +0 -1
  61. package/{testing.d.ts → dist/testing.d.ts} +0 -1
  62. package/migrations.json +3 -3
  63. package/package.json +55 -5
  64. package/assets.json +0 -15
  65. package/index.d.ts.map +0 -1
  66. package/internal.d.ts +0 -2
  67. package/internal.d.ts.map +0 -1
  68. package/internal.js +0 -8
  69. package/ngcli-adapter.d.ts.map +0 -1
  70. package/project.json +0 -14
  71. package/public-api.d.ts.map +0 -1
  72. package/src/executors/parse-target-string.d.ts.map +0 -1
  73. package/src/executors/read-target-options.d.ts.map +0 -1
  74. package/src/generators/artifact-name-and-directory-utils.d.ts.map +0 -1
  75. package/src/generators/e2e-web-server-info-utils.d.ts.map +0 -1
  76. package/src/generators/executor-options-utils.d.ts.map +0 -1
  77. package/src/generators/format-files.d.ts.map +0 -1
  78. package/src/generators/generate-files.d.ts.map +0 -1
  79. package/src/generators/plugin-migrations/aggregate-log-util.d.ts.map +0 -1
  80. package/src/generators/plugin-migrations/executor-to-plugin-migrator.d.ts.map +0 -1
  81. package/src/generators/plugin-migrations/plugin-migration-utils.d.ts.map +0 -1
  82. package/src/generators/project-name-and-root-utils.d.ts.map +0 -1
  83. package/src/generators/prompt.d.ts.map +0 -1
  84. package/src/generators/run-tasks-in-serial.d.ts.map +0 -1
  85. package/src/generators/target-defaults-utils.d.ts.map +0 -1
  86. package/src/generators/to-js.d.ts.map +0 -1
  87. package/src/generators/typescript/insert-import.d.ts.map +0 -1
  88. package/src/generators/typescript/insert-statement.d.ts.map +0 -1
  89. package/src/generators/update-ts-configs-to-js.d.ts.map +0 -1
  90. package/src/generators/visit-not-ignored-files.d.ts.map +0 -1
  91. package/src/tasks/install-packages-task.d.ts.map +0 -1
  92. package/src/utils/add-plugin.d.ts.map +0 -1
  93. package/src/utils/async-iterable/combine-async-iterables.d.ts.map +0 -1
  94. package/src/utils/async-iterable/create-async-iterable.d.ts.map +0 -1
  95. package/src/utils/async-iterable/index.d.ts.map +0 -1
  96. package/src/utils/async-iterable/map-async-iteratable.d.ts.map +0 -1
  97. package/src/utils/async-iterable/tap-async-iteratable.d.ts.map +0 -1
  98. package/src/utils/binary-extensions.d.ts.map +0 -1
  99. package/src/utils/calculate-hash-for-create-nodes.d.ts.map +0 -1
  100. package/src/utils/catalog/index.d.ts.map +0 -1
  101. package/src/utils/catalog/manager-factory.d.ts.map +0 -1
  102. package/src/utils/catalog/manager.d.ts.map +0 -1
  103. package/src/utils/catalog/pnpm-manager.d.ts.map +0 -1
  104. package/src/utils/catalog/types.d.ts.map +0 -1
  105. package/src/utils/catalog/yarn-manager.d.ts.map +0 -1
  106. package/src/utils/config-utils.d.ts.map +0 -1
  107. package/src/utils/convert-nx-executor.d.ts.map +0 -1
  108. package/src/utils/find-plugin-for-config-file.d.ts.map +0 -1
  109. package/src/utils/find-plugin-for-config-file.js +0 -61
  110. package/src/utils/get-named-inputs.d.ts.map +0 -1
  111. package/src/utils/get-workspace-layout.d.ts.map +0 -1
  112. package/src/utils/invoke-nx-generator.d.ts.map +0 -1
  113. package/src/utils/log-show-project-command.d.ts.map +0 -1
  114. package/src/utils/move-dir.d.ts.map +0 -1
  115. package/src/utils/names.d.ts.map +0 -1
  116. package/src/utils/offset-from-root.d.ts.map +0 -1
  117. package/src/utils/package-json.d.ts.map +0 -1
  118. package/src/utils/replace-package.d.ts.map +0 -1
  119. package/src/utils/replace-project-configuration-with-plugin.d.ts.map +0 -1
  120. package/src/utils/rxjs-for-await.d.ts.map +0 -1
  121. package/src/utils/semver.d.ts.map +0 -1
  122. package/src/utils/string-change.d.ts.map +0 -1
  123. package/src/utils/string-utils.d.ts.map +0 -1
  124. package/src/utils/versions.d.ts.map +0 -1
  125. package/testing.d.ts.map +0 -1
  126. /package/{LICENSE → dist/LICENSE} +0 -0
  127. /package/{index.js → dist/index.js} +0 -0
  128. /package/{ngcli-adapter.js → dist/ngcli-adapter.js} +0 -0
  129. /package/{public-api.js → dist/public-api.js} +0 -0
  130. /package/{src → dist/src}/executors/parse-target-string.js +0 -0
  131. /package/{src → dist/src}/executors/read-target-options.js +0 -0
  132. /package/{src → dist/src}/generators/artifact-name-and-directory-utils.js +0 -0
  133. /package/{src → dist/src}/generators/e2e-web-server-info-utils.js +0 -0
  134. /package/{src → dist/src}/generators/executor-options-utils.js +0 -0
  135. /package/{src → dist/src}/generators/generate-files.js +0 -0
  136. /package/{src → dist/src}/generators/plugin-migrations/aggregate-log-util.js +0 -0
  137. /package/{src → dist/src}/generators/plugin-migrations/executor-to-plugin-migrator.js +0 -0
  138. /package/{src → dist/src}/generators/plugin-migrations/plugin-migration-utils.js +0 -0
  139. /package/{src → dist/src}/generators/project-name-and-root-utils.js +0 -0
  140. /package/{src → dist/src}/generators/prompt.js +0 -0
  141. /package/{src → dist/src}/generators/run-tasks-in-serial.js +0 -0
  142. /package/{src → dist/src}/generators/to-js.js +0 -0
  143. /package/{src → dist/src}/generators/typescript/insert-import.js +0 -0
  144. /package/{src → dist/src}/generators/typescript/insert-statement.js +0 -0
  145. /package/{src → dist/src}/generators/update-ts-configs-to-js.js +0 -0
  146. /package/{src → dist/src}/generators/visit-not-ignored-files.js +0 -0
  147. /package/{src → dist/src}/tasks/install-packages-task.js +0 -0
  148. /package/{src → dist/src}/utils/add-plugin.js +0 -0
  149. /package/{src → dist/src}/utils/async-iterable/combine-async-iterables.js +0 -0
  150. /package/{src → dist/src}/utils/async-iterable/create-async-iterable.js +0 -0
  151. /package/{src → dist/src}/utils/async-iterable/index.js +0 -0
  152. /package/{src → dist/src}/utils/async-iterable/map-async-iteratable.js +0 -0
  153. /package/{src → dist/src}/utils/async-iterable/tap-async-iteratable.js +0 -0
  154. /package/{src → dist/src}/utils/binary-extensions.js +0 -0
  155. /package/{src → dist/src}/utils/calculate-hash-for-create-nodes.js +0 -0
  156. /package/{src → dist/src}/utils/catalog/index.js +0 -0
  157. /package/{src → dist/src}/utils/catalog/manager-factory.js +0 -0
  158. /package/{src → dist/src}/utils/catalog/manager.js +0 -0
  159. /package/{src → dist/src}/utils/catalog/pnpm-manager.js +0 -0
  160. /package/{src → dist/src}/utils/catalog/types.js +0 -0
  161. /package/{src → dist/src}/utils/catalog/yarn-manager.js +0 -0
  162. /package/{src → dist/src}/utils/config-utils.js +0 -0
  163. /package/{src → dist/src}/utils/convert-nx-executor.js +0 -0
  164. /package/{src → dist/src}/utils/get-named-inputs.js +0 -0
  165. /package/{src → dist/src}/utils/get-workspace-layout.js +0 -0
  166. /package/{src → dist/src}/utils/invoke-nx-generator.js +0 -0
  167. /package/{src → dist/src}/utils/log-show-project-command.js +0 -0
  168. /package/{src → dist/src}/utils/move-dir.js +0 -0
  169. /package/{src → dist/src}/utils/names.js +0 -0
  170. /package/{src → dist/src}/utils/offset-from-root.js +0 -0
  171. /package/{src → dist/src}/utils/package-json.js +0 -0
  172. /package/{src → dist/src}/utils/replace-package.js +0 -0
  173. /package/{src → dist/src}/utils/replace-project-configuration-with-plugin.js +0 -0
  174. /package/{src → dist/src}/utils/rxjs-for-await.js +0 -0
  175. /package/{src → dist/src}/utils/semver.js +0 -0
  176. /package/{src → dist/src}/utils/string-change.js +0 -0
  177. /package/{src → dist/src}/utils/string-utils.js +0 -0
  178. /package/{src → dist/src}/utils/versions.js +0 -0
  179. /package/{testing.js → dist/testing.js} +0 -0
@@ -12,4 +12,3 @@
12
12
  */
13
13
  export * from 'nx/src/devkit-exports';
14
14
  export * from './public-api';
15
- //# sourceMappingURL=index.d.ts.map
@@ -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';
@@ -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; } });
@@ -2,4 +2,3 @@
2
2
  * @category Ng CLI Adapter
3
3
  */
4
4
  export { wrapAngularDevkitSchematic, mockSchematicsForTesting, NxScopedHost, } from 'nx/src/adapter/ngcli-adapter';
5
- //# sourceMappingURL=ngcli-adapter.d.ts.map
@@ -76,4 +76,3 @@ export { convertNxExecutor } from './src/utils/convert-nx-executor';
76
76
  * @category Utils
77
77
  */
78
78
  export { moveFilesToNewDirectory } from './src/utils/move-dir';
79
- //# sourceMappingURL=public-api.d.ts.map
@@ -36,4 +36,3 @@ export declare function parseTargetString(targetString: string, ctx: ExecutorCon
36
36
  * ```
37
37
  */
38
38
  export declare function targetToTargetString({ project, target, configuration, }: Target): string;
39
- //# sourceMappingURL=parse-target-string.d.ts.map
@@ -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
@@ -52,4 +52,3 @@ export declare function getRelativeCwd(): string;
52
52
  * Function for setting cwd during testing
53
53
  */
54
54
  export declare function setCwd(path: string): void;
55
- //# sourceMappingURL=artifact-name-and-directory-utils.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
@@ -18,4 +18,3 @@ callback: CallBack<Options>): void;
18
18
  **/
19
19
  export declare function forEachExecutorOptionsInGraph<Options>(graph: ProjectGraph, executorName: string, callback: CallBack<Options>): void;
20
20
  export {};
21
- //# sourceMappingURL=executor-options-utils.d.ts.map
@@ -16,4 +16,3 @@ import { Tree } from 'nx/src/devkit-exports';
16
16
  export declare function formatFiles(tree: Tree, options?: {
17
17
  sortRootTsconfigPaths?: boolean;
18
18
  }): Promise<void>;
19
- //# sourceMappingURL=format-files.d.ts.map
@@ -32,7 +32,7 @@ async function formatFiles(tree, options = {}) {
32
32
  }
33
33
  let prettier;
34
34
  try {
35
- prettier = await Promise.resolve().then(() => tslib_1.__importStar(require('prettier')));
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.
@@ -42,4 +42,3 @@ export interface GenerateFilesOptions {
42
42
  export declare function generateFiles(tree: Tree, srcFolder: string, target: string, substitutions: {
43
43
  [k: string]: any;
44
44
  }, options?: GenerateFilesOptions): void;
45
- //# sourceMappingURL=generate-files.d.ts.map
@@ -25,4 +25,3 @@ export declare class AggregatedLog {
25
25
  flushLogs(): void;
26
26
  }
27
27
  export {};
28
- //# sourceMappingURL=aggregate-log-util.d.ts.map
@@ -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
@@ -61,4 +61,3 @@ export declare function processTargetOutputs(target: TargetConfiguration, rename
61
61
  projectRoot: string;
62
62
  }): void;
63
63
  export declare function toProjectRelativePath(path: string, projectRoot: string): string;
64
- //# sourceMappingURL=plugin-migration-utils.d.ts.map
@@ -39,4 +39,3 @@ export declare function ensureRootProjectName(options: {
39
39
  directory: string;
40
40
  name?: string;
41
41
  }, projectType: 'application' | 'library'): Promise<void>;
42
- //# sourceMappingURL=project-name-and-root-utils.d.ts.map
@@ -1,3 +1,2 @@
1
1
  import { prompt } from 'enquirer';
2
2
  export declare function promptWhenInteractive<T>(questions: Parameters<typeof prompt>[0], defaultValue: T): Promise<T>;
3
- //# sourceMappingURL=prompt.d.ts.map
@@ -5,4 +5,3 @@ import type { GeneratorCallback } from 'nx/src/devkit-exports';
5
5
  * @param tasks The tasks to run in serial.
6
6
  */
7
7
  export declare function runTasksInSerial(...tasks: GeneratorCallback[]): GeneratorCallback;
8
- //# sourceMappingURL=run-tasks-in-serial.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 Promise.resolve(`${e2ePlugin}`).then(s => __importStar(require(s)));
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++) {
@@ -10,4 +10,3 @@ export type ToJSOptions = {
10
10
  * Rename and transpile any new typescript files created to javascript files
11
11
  */
12
12
  export declare function toJS(tree: Tree, options?: ToJSOptions): void;
13
- //# sourceMappingURL=to-js.d.ts.map
@@ -1,2 +1 @@
1
1
  export declare function insertImport(): void;
2
- //# sourceMappingURL=insert-import.d.ts.map
@@ -1,2 +1 @@
1
1
  export declare function insertImport(): void;
2
- //# sourceMappingURL=insert-statement.d.ts.map
@@ -2,4 +2,3 @@ import { Tree } from 'nx/src/devkit-exports';
2
2
  export declare function updateTsConfigsToJs(tree: Tree, options: {
3
3
  projectRoot: string;
4
4
  }): void;
5
- //# sourceMappingURL=update-ts-configs-to-js.d.ts.map
@@ -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
@@ -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
@@ -1,4 +1,3 @@
1
1
  export declare function combineAsyncIterables<T = any>(..._iterators: {
2
2
  0: AsyncIterable<T>;
3
3
  } & AsyncIterable<T>[]): AsyncGenerator<T>;
4
- //# sourceMappingURL=combine-async-iterables.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
@@ -2,4 +2,3 @@ export * from './create-async-iterable';
2
2
  export * from './combine-async-iterables';
3
3
  export * from './map-async-iteratable';
4
4
  export * from './tap-async-iteratable';
5
- //# sourceMappingURL=index.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,2 +1 @@
1
1
  export declare function tapAsyncIterable<T = any, I = any, O = any>(data: AsyncIterable<T> | AsyncIterableIterator<T>, fn: (input: I) => void): AsyncIterable<T> | AsyncIterableIterator<T>;
2
- //# sourceMappingURL=tap-async-iteratable.d.ts.map
@@ -1,2 +1 @@
1
1
  export declare function isBinaryPath(path: string): boolean;
2
- //# sourceMappingURL=binary-extensions.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
@@ -38,4 +38,3 @@ export interface CatalogManager {
38
38
  catalogName?: string;
39
39
  }>): void;
40
40
  }
41
- //# sourceMappingURL=manager.d.ts.map
@@ -19,4 +19,3 @@ export declare class PnpmCatalogManager implements CatalogManager {
19
19
  catalogName?: string;
20
20
  }>): void;
21
21
  }
22
- //# sourceMappingURL=pnpm-manager.d.ts.map
@@ -9,4 +9,3 @@ export interface CatalogDefinitions {
9
9
  catalog?: CatalogEntry;
10
10
  catalogs?: Record<string, CatalogEntry>;
11
11
  }
12
- //# sourceMappingURL=types.d.ts.map
@@ -19,4 +19,3 @@ export declare class YarnCatalogManager implements CatalogManager {
19
19
  catalogName?: string;
20
20
  }>): void;
21
21
  }
22
- //# sourceMappingURL=yarn-manager.d.ts.map
@@ -3,4 +3,3 @@ export declare function loadConfigFile<T extends object = any>(configFilePath: s
3
3
  export declare function getRootTsConfigPath(): string | null;
4
4
  export declare function getRootTsConfigFileName(): string | null;
5
5
  export declare function clearRequireCache(): void;
6
- //# sourceMappingURL=config-utils.d.ts.map
@@ -5,4 +5,3 @@ import type { Executor } from 'nx/src/devkit-exports';
5
5
  * Use this to expose a compatible Angular Builder
6
6
  */
7
7
  export declare function convertNxExecutor(executor: Executor): any;
8
- //# sourceMappingURL=convert-nx-executor.d.ts.map
@@ -1,3 +1,2 @@
1
1
  import { type Tree, type PluginConfiguration } from 'nx/src/devkit-exports';
2
2
  export declare function findPluginForConfigFile(tree: Tree, pluginName: string, pathToConfigFile: string): Promise<PluginConfiguration>;
3
- //# sourceMappingURL=find-plugin-for-config-file.d.ts.map
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.findPluginForConfigFile = findPluginForConfigFile;
4
+ const devkit_exports_1 = require("nx/src/devkit-exports");
5
+ const devkit_internals_1 = require("nx/src/devkit-internals");
6
+ async function findPluginForConfigFile(tree, pluginName, pathToConfigFile) {
7
+ const nxJson = (0, devkit_exports_1.readNxJson)(tree);
8
+ if (!nxJson.plugins) {
9
+ return;
10
+ }
11
+ const pluginRegistrations = nxJson.plugins.filter((p) => (typeof p === 'string' ? p === pluginName : p.plugin === pluginName));
12
+ for (const plugin of pluginRegistrations) {
13
+ if (typeof plugin === 'string') {
14
+ return plugin;
15
+ }
16
+ if (!plugin.include && !plugin.exclude) {
17
+ return plugin;
18
+ }
19
+ if (plugin.include || plugin.exclude) {
20
+ const resolvedPlugin = await import(pluginName);
21
+ const pluginGlob = resolvedPlugin.createNodesV2?.[0] ?? resolvedPlugin.createNodes?.[0];
22
+ const matchingConfigFile = (0, devkit_internals_1.findMatchingConfigFiles)([pathToConfigFile], pluginGlob, plugin.include, plugin.exclude);
23
+ if (matchingConfigFile.length) {
24
+ return plugin;
25
+ }
26
+ }
27
+ }
28
+ }
@@ -6,4 +6,3 @@ import { CreateNodesContextV2 } from 'nx/src/devkit-exports';
6
6
  export declare function getNamedInputs(directory: string, context: CreateNodesContextV2): {
7
7
  [inputName: string]: (string | InputDefinition)[];
8
8
  };
9
- //# sourceMappingURL=get-named-inputs.d.ts.map
@@ -22,4 +22,3 @@ export declare function extractLayoutDirectory(directory?: string): {
22
22
  layoutDirectory: string | null;
23
23
  projectDirectory?: string;
24
24
  };
25
- //# sourceMappingURL=get-workspace-layout.d.ts.map
@@ -4,4 +4,3 @@ import { Generator } from 'nx/src/devkit-exports';
4
4
  * @param generator The Nx generator to convert to an Angular Devkit Schematic.
5
5
  */
6
6
  export declare function convertNxGenerator<T = any>(generator: Generator<T>, skipWritingConfigInOldFormat?: boolean): (generatorOptions: T) => (tree: any, context: any) => Promise<any>;
7
- //# sourceMappingURL=invoke-nx-generator.d.ts.map
@@ -1,2 +1 @@
1
1
  export declare function logShowProjectCommand(projectName: string): void;
2
- //# sourceMappingURL=log-show-project-command.d.ts.map
@@ -3,4 +3,3 @@ import { Tree } from 'nx/src/devkit-exports';
3
3
  * Analogous to cp -r oldDir newDir
4
4
  */
5
5
  export declare function moveFilesToNewDirectory(tree: Tree, oldDir: string, newDir: string): void;
6
- //# sourceMappingURL=move-dir.d.ts.map
@@ -16,4 +16,3 @@ export declare function names(name: string): {
16
16
  constantName: string;
17
17
  fileName: string;
18
18
  };
19
- //# sourceMappingURL=names.d.ts.map
@@ -11,4 +11,3 @@
11
11
  * @param fullPathToDir - directory path
12
12
  */
13
13
  export declare function offsetFromRoot(fullPathToDir: string): string;
14
- //# sourceMappingURL=offset-from-root.d.ts.map
@@ -153,4 +153,3 @@ export declare function ensurePackage<T extends any = any>(pkg: string, version:
153
153
  * @description The version of Nx used by the workspace. Returns null if no version is found.
154
154
  */
155
155
  export declare const NX_VERSION: string;
156
- //# sourceMappingURL=package-json.d.ts.map
@@ -1,3 +1,2 @@
1
1
  import { Tree } from 'nx/src/devkit-exports';
2
2
  export declare function replaceNrwlPackageWithNxPackage(tree: Tree, oldPackageName: string, newPackageName: string): void;
3
- //# sourceMappingURL=replace-package.d.ts.map
@@ -1,3 +1,2 @@
1
1
  import { CreateNodesV2, Tree } from 'nx/src/devkit-exports';
2
2
  export declare function replaceProjectConfigurationsWithPlugin<T = unknown>(tree: Tree, rootMappings: Map<string, string>, pluginPath: string, createNodes: CreateNodesV2<T>, pluginOptions: T): Promise<void>;
3
- //# sourceMappingURL=replace-project-configuration-with-plugin.d.ts.map
@@ -107,4 +107,3 @@ export declare function latestValueFrom<T>(source: Observable<T>): AsyncGenerato
107
107
  * @param source the Observable source to await values from
108
108
  */
109
109
  export declare function nextValueFrom<T>(source: Observable<T>): AsyncGenerator<T, void, void>;
110
- //# sourceMappingURL=rxjs-for-await.d.ts.map
@@ -1,4 +1,3 @@
1
1
  import { type Tree } from 'nx/src/devkit-exports';
2
2
  export declare function checkAndCleanWithSemver(pkgName: string, version: string): string;
3
3
  export declare function checkAndCleanWithSemver(tree: Tree, pkgName: string, version: string): string;
4
- //# sourceMappingURL=semver.d.ts.map
@@ -60,4 +60,3 @@ export type StringChange = StringInsertion | StringDeletion;
60
60
  * ```
61
61
  */
62
62
  export declare function applyChangesToString(text: string, changes: StringChange[]): string;
63
- //# sourceMappingURL=string-change.d.ts.map
@@ -93,4 +93,3 @@ export declare function underscore(str: string): string;
93
93
  export declare function capitalize(str: string): string;
94
94
  export declare function group(name: string, group: string | undefined): string;
95
95
  export declare function featurePath(group: boolean | undefined, flat: boolean | undefined, path: string, name: string): string;
96
- //# sourceMappingURL=string-utils.d.ts.map
@@ -1,2 +1 @@
1
1
  export declare const typescriptVersion = "~5.9.2";
2
- //# sourceMappingURL=versions.d.ts.map
@@ -1,2 +1 @@
1
1
  export * from 'nx/src/devkit-testing-exports';
2
- //# sourceMappingURL=testing.d.ts.map
package/migrations.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "generators": {},
3
- "packageJsonUpdates": {},
4
- "version": "0.1"
2
+ "generators": {},
3
+ "packageJsonUpdates": {},
4
+ "version": "0.1"
5
5
  }