nx 22.1.0-canary.20251030-b283663 → 22.1.0-canary.20251110-73ecb30

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 (59) hide show
  1. package/migrations.json +6 -0
  2. package/package.json +12 -11
  3. package/src/command-line/init/implementation/dot-nx/add-nx-scripts.d.ts +2 -0
  4. package/src/command-line/init/implementation/dot-nx/add-nx-scripts.d.ts.map +1 -1
  5. package/src/command-line/init/implementation/dot-nx/add-nx-scripts.js +11 -1
  6. package/src/command-line/init/init-v2.js +1 -1
  7. package/src/core/graph/main.js +1 -1
  8. package/src/daemon/client/client.d.ts +1 -0
  9. package/src/daemon/client/client.d.ts.map +1 -1
  10. package/src/daemon/client/client.js +18 -1
  11. package/src/devkit-internals.d.ts +1 -1
  12. package/src/devkit-internals.d.ts.map +1 -1
  13. package/src/devkit-internals.js +2 -1
  14. package/src/executors/run-commands/run-commands.impl.d.ts +1 -1
  15. package/src/executors/run-commands/run-commands.impl.d.ts.map +1 -1
  16. package/src/executors/run-commands/run-commands.impl.js +7 -4
  17. package/src/executors/run-commands/running-tasks.d.ts +4 -3
  18. package/src/executors/run-commands/running-tasks.d.ts.map +1 -1
  19. package/src/executors/run-commands/running-tasks.js +30 -9
  20. package/src/generators/internal-utils/format-changed-files-with-prettier-if-available.d.ts.map +1 -1
  21. package/src/generators/internal-utils/format-changed-files-with-prettier-if-available.js +5 -1
  22. package/src/hasher/hash-task.d.ts +1 -0
  23. package/src/hasher/hash-task.d.ts.map +1 -1
  24. package/src/hasher/hash-task.js +57 -0
  25. package/src/migrations/update-22-1-0/update-nx-wrapper.d.ts +3 -0
  26. package/src/migrations/update-22-1-0/update-nx-wrapper.d.ts.map +1 -0
  27. package/src/migrations/update-22-1-0/update-nx-wrapper.js +7 -0
  28. package/src/native/index.d.ts +101 -0
  29. package/src/native/native-bindings.js +1 -0
  30. package/src/native/nx.wasm32-wasi.wasm +0 -0
  31. package/src/plugins/js/project-graph/build-dependencies/target-project-locator.js +1 -1
  32. package/src/project-graph/plugins/get-plugins.d.ts.map +1 -1
  33. package/src/project-graph/plugins/get-plugins.js +4 -4
  34. package/src/project-graph/plugins/isolation/index.d.ts +1 -1
  35. package/src/project-graph/plugins/isolation/index.d.ts.map +1 -1
  36. package/src/project-graph/plugins/isolation/index.js +2 -2
  37. package/src/project-graph/plugins/isolation/plugin-pool.d.ts +1 -1
  38. package/src/project-graph/plugins/isolation/plugin-pool.d.ts.map +1 -1
  39. package/src/project-graph/plugins/isolation/plugin-pool.js +22 -2
  40. package/src/tasks-runner/create-task-graph.d.ts.map +1 -1
  41. package/src/tasks-runner/create-task-graph.js +4 -11
  42. package/src/tasks-runner/forked-process-task-runner.d.ts.map +1 -1
  43. package/src/tasks-runner/forked-process-task-runner.js +36 -4
  44. package/src/tasks-runner/is-tui-enabled.d.ts.map +1 -1
  45. package/src/tasks-runner/is-tui-enabled.js +0 -4
  46. package/src/tasks-runner/process-metrics-service.d.ts +54 -0
  47. package/src/tasks-runner/process-metrics-service.d.ts.map +1 -0
  48. package/src/tasks-runner/process-metrics-service.js +161 -0
  49. package/src/tasks-runner/pseudo-terminal.d.ts +1 -0
  50. package/src/tasks-runner/pseudo-terminal.d.ts.map +1 -1
  51. package/src/tasks-runner/pseudo-terminal.js +3 -0
  52. package/src/tasks-runner/running-tasks/node-child-process.d.ts.map +1 -1
  53. package/src/tasks-runner/task-orchestrator.d.ts.map +1 -1
  54. package/src/tasks-runner/task-orchestrator.js +3 -7
  55. package/src/tasks-runner/utils.d.ts +1 -0
  56. package/src/tasks-runner/utils.d.ts.map +1 -1
  57. package/src/tasks-runner/utils.js +8 -0
  58. package/src/utils/update-nxw.d.ts.map +1 -1
  59. package/src/utils/update-nxw.js +11 -0
@@ -1 +1 @@
1
- {"version":3,"file":"update-nxw.d.ts","sourceRoot":"","sources":["../../../../../packages/nx/src/utils/update-nxw.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAG/C,wBAAgB,SAAS,CAAC,IAAI,EAAE,IAAI,QAKnC"}
1
+ {"version":3,"file":"update-nxw.d.ts","sourceRoot":"","sources":["../../../../../packages/nx/src/utils/update-nxw.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAI/C,wBAAgB,SAAS,CAAC,IAAI,EAAE,IAAI,QAiBnC"}
@@ -3,9 +3,20 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.updateNxw = updateNxw;
4
4
  const add_nx_scripts_1 = require("../command-line/init/implementation/dot-nx/add-nx-scripts");
5
5
  const path_1 = require("../utils/path");
6
+ const fs_1 = require("fs");
6
7
  function updateNxw(tree) {
7
8
  const wrapperPath = (0, path_1.normalizePath)((0, add_nx_scripts_1.nxWrapperPath)());
8
9
  if (tree.exists(wrapperPath)) {
9
10
  tree.write(wrapperPath, (0, add_nx_scripts_1.getNxWrapperContents)());
10
11
  }
12
+ const bashScriptPath = 'nx';
13
+ if (tree.exists(bashScriptPath) && tree.isFile(bashScriptPath)) {
14
+ tree.write(bashScriptPath, (0, add_nx_scripts_1.getShellScriptContents)(), {
15
+ mode: fs_1.constants.S_IXUSR | fs_1.constants.S_IRUSR | fs_1.constants.S_IWUSR,
16
+ });
17
+ }
18
+ const batchScriptPath = 'nx.bat';
19
+ if (tree.exists(batchScriptPath) && tree.isFile(batchScriptPath)) {
20
+ tree.write(batchScriptPath, (0, add_nx_scripts_1.getBatchScriptContents)());
21
+ }
11
22
  }