nx 21.0.0-canary.20250425-ee097a8 → 21.0.0-canary.20250429-cf4a1f3

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 (35) hide show
  1. package/migrations.json +0 -35
  2. package/package.json +11 -11
  3. package/src/adapter/angular-json.js +11 -0
  4. package/src/command-line/migrate/migrate-ui-api.d.ts +2 -0
  5. package/src/command-line/migrate/migrate-ui-api.js +39 -0
  6. package/src/command-line/migrate/migrate.d.ts +0 -4
  7. package/src/command-line/migrate/migrate.js +8 -21
  8. package/src/command-line/release/version/release-group-processor.js +8 -0
  9. package/src/command-line/repair/repair.js +0 -1
  10. package/src/config/misc-interfaces.d.ts +0 -1
  11. package/src/core/graph/main.js +1 -1
  12. package/src/native/index.d.ts +2 -0
  13. package/src/native/native-bindings.js +1 -0
  14. package/src/native/nx.wasm32-wasi.wasm +0 -0
  15. package/src/plugins/js/index.d.ts +2 -1
  16. package/src/plugins/js/index.js +8 -1
  17. package/src/plugins/js/lock-file/utils/package-json.js +6 -5
  18. package/src/plugins/js/lock-file/utils/pnpm-normalizer.js +3 -3
  19. package/src/project-graph/file-utils.d.ts +1 -10
  20. package/src/project-graph/file-utils.js +2 -77
  21. package/src/project-graph/plugins/loaded-nx-plugin.js +1 -5
  22. package/src/tasks-runner/run-command.js +32 -17
  23. package/src/tasks-runner/task-orchestrator.js +9 -0
  24. package/src/migrations/update-17-0-0/move-cache-directory.d.ts +0 -2
  25. package/src/migrations/update-17-0-0/move-cache-directory.js +0 -35
  26. package/src/migrations/update-17-0-0/rm-default-collection-npm-scope.d.ts +0 -2
  27. package/src/migrations/update-17-0-0/rm-default-collection-npm-scope.js +0 -72
  28. package/src/migrations/update-17-0-0/use-minimal-config-for-tasks-runner-options.d.ts +0 -2
  29. package/src/migrations/update-17-0-0/use-minimal-config-for-tasks-runner-options.js +0 -122
  30. package/src/migrations/update-17-2-0/move-default-base.d.ts +0 -5
  31. package/src/migrations/update-17-2-0/move-default-base.js +0 -21
  32. package/src/migrations/update-17-3-0/nx-release-path.d.ts +0 -3
  33. package/src/migrations/update-17-3-0/nx-release-path.js +0 -47
  34. package/src/migrations/update-18-0-0/disable-crystal-for-existing-workspaces.d.ts +0 -2
  35. package/src/migrations/update-18-0-0/disable-crystal-for-existing-workspaces.js +0 -11
@@ -1,47 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.default = nxReleasePath;
4
- exports.visitNotIgnoredFiles = visitNotIgnoredFiles;
5
- const node_path_1 = require("node:path");
6
- const ignore_1 = require("../../utils/ignore");
7
- function nxReleasePath(tree) {
8
- visitNotIgnoredFiles(tree, '', (file) => {
9
- const contents = tree.read(file).toString('utf-8');
10
- if (
11
- // the deep import usage should be replaced by the new location
12
- contents.includes('nx/src/command-line/release') ||
13
- // changelog-renderer has moved into nx/release
14
- contents.includes('nx/changelog-renderer')) {
15
- const finalContents = contents
16
- // replace instances of old changelog renderer location
17
- .replace(/nx\/changelog-renderer/g, 'nx/release/changelog-renderer')
18
- // replace instances of deep import for programmatic API (only perform the replacement if an actual import by checking for trailing ' or ")
19
- .replace(/nx\/src\/command-line\/release(['"])/g, 'nx/release$1');
20
- tree.write(file, finalContents);
21
- }
22
- });
23
- }
24
- // Adapted from devkit
25
- function visitNotIgnoredFiles(tree, dirPath = tree.root, visitor) {
26
- const ig = (0, ignore_1.getIgnoreObject)();
27
- dirPath = normalizePathRelativeToRoot(dirPath, tree.root);
28
- if (dirPath !== '' && ig?.ignores(dirPath)) {
29
- return;
30
- }
31
- for (const child of tree.children(dirPath)) {
32
- const fullPath = (0, node_path_1.join)(dirPath, child);
33
- if (ig?.ignores(fullPath)) {
34
- continue;
35
- }
36
- if (tree.isFile(fullPath)) {
37
- visitor(fullPath);
38
- }
39
- else {
40
- visitNotIgnoredFiles(tree, fullPath, visitor);
41
- }
42
- }
43
- }
44
- // Copied from devkit
45
- function normalizePathRelativeToRoot(path, root) {
46
- return (0, node_path_1.relative)(root, (0, node_path_1.join)(root, path)).split(node_path_1.sep).join('/');
47
- }
@@ -1,2 +0,0 @@
1
- import { Tree } from '../../generators/tree';
2
- export default function migrate(tree: Tree): Promise<void>;
@@ -1,11 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.default = migrate;
4
- const nx_json_1 = require("../../generators/utils/nx-json");
5
- const format_changed_files_with_prettier_if_available_1 = require("../../generators/internal-utils/format-changed-files-with-prettier-if-available");
6
- async function migrate(tree) {
7
- const nxJson = (0, nx_json_1.readNxJson)(tree);
8
- nxJson.useInferencePlugins = false;
9
- (0, nx_json_1.updateNxJson)(tree, nxJson);
10
- await (0, format_changed_files_with_prettier_if_available_1.formatChangedFilesWithPrettierIfAvailable)(tree);
11
- }