nx 22.1.0-canary.20251114-b3e6b03 → 22.1.0-canary.20251117-e8576a8

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 (32) hide show
  1. package/executors.json +16 -16
  2. package/generators.json +13 -13
  3. package/migrations.json +143 -143
  4. package/package.json +11 -14
  5. package/presets/npm.json +4 -4
  6. package/schemas/nx-schema.json +1286 -1286
  7. package/schemas/project-schema.json +359 -359
  8. package/schemas/workspace-schema.json +165 -165
  9. package/src/ai/set-up-ai-agents/schema.json +31 -31
  10. package/src/core/graph/main.js +1 -1
  11. package/src/daemon/client/client.d.ts.map +1 -1
  12. package/src/daemon/client/client.js +4 -4
  13. package/src/daemon/client/daemon-socket-messenger.d.ts.map +1 -1
  14. package/src/daemon/client/daemon-socket-messenger.js +4 -0
  15. package/src/daemon/server/server.d.ts.map +1 -1
  16. package/src/daemon/server/server.js +4 -0
  17. package/src/executors/noop/schema.json +8 -8
  18. package/src/executors/run-commands/schema.json +187 -187
  19. package/src/executors/run-script/schema.json +25 -25
  20. package/src/native/nx.wasi-browser.js +45 -53
  21. package/src/native/nx.wasm32-wasi.wasm +0 -0
  22. package/src/nx-cloud/generators/connect-to-nx-cloud/schema.json +38 -38
  23. package/src/project-graph/plugins/resolve-plugin.js +1 -1
  24. package/src/tasks-runner/task-env-paths.d.ts +2 -0
  25. package/src/tasks-runner/task-env-paths.d.ts.map +1 -0
  26. package/src/tasks-runner/task-env-paths.js +45 -0
  27. package/src/tasks-runner/task-env.d.ts +3 -1
  28. package/src/tasks-runner/task-env.d.ts.map +1 -1
  29. package/src/tasks-runner/task-env.js +27 -51
  30. package/src/tasks-runner/task-orchestrator.js +1 -1
  31. package/src/utils/consume-messages-from-socket.d.ts.map +1 -1
  32. package/src/utils/consume-messages-from-socket.js +4 -2
package/executors.json CHANGED
@@ -1,19 +1,19 @@
1
1
  {
2
- "executors": {
3
- "noop": {
4
- "implementation": "./src/executors/noop/noop.impl",
5
- "schema": "./src/executors/noop/schema.json",
6
- "description": "An executor that does nothing"
7
- },
8
- "run-commands": {
9
- "implementation": "./src/executors/run-commands/run-commands.impl",
10
- "schema": "./src/executors/run-commands/schema.json",
11
- "description": "Run any custom commands with Nx."
12
- },
13
- "run-script": {
14
- "implementation": "./src/executors/run-script/run-script.impl",
15
- "schema": "./src/executors/run-script/schema.json",
16
- "description": "Run an NPM script using Nx."
2
+ "executors": {
3
+ "noop": {
4
+ "implementation": "./src/executors/noop/noop.impl",
5
+ "schema": "./src/executors/noop/schema.json",
6
+ "description": "An executor that does nothing"
7
+ },
8
+ "run-commands": {
9
+ "implementation": "./src/executors/run-commands/run-commands.impl",
10
+ "schema": "./src/executors/run-commands/schema.json",
11
+ "description": "Run any custom commands with Nx."
12
+ },
13
+ "run-script": {
14
+ "implementation": "./src/executors/run-script/run-script.impl",
15
+ "schema": "./src/executors/run-script/schema.json",
16
+ "description": "Run an NPM script using Nx."
17
+ }
17
18
  }
18
- }
19
19
  }
package/generators.json CHANGED
@@ -1,16 +1,16 @@
1
1
  {
2
- "generators": {
3
- "connect-to-nx-cloud": {
4
- "factory": "./src/nx-cloud/generators/connect-to-nx-cloud/connect-to-nx-cloud",
5
- "schema": "./src/nx-cloud/generators/connect-to-nx-cloud/schema.json",
6
- "description": "Connect a workspace to Nx Cloud",
7
- "x-hidden": true
8
- },
9
- "set-up-ai-agents": {
10
- "factory": "./src/ai/set-up-ai-agents/set-up-ai-agents",
11
- "schema": "./src/ai/set-up-ai-agents/schema.json",
12
- "description": "Sets up the Nx MCP & rule files for common AI Agents",
13
- "hidden": true
2
+ "generators": {
3
+ "connect-to-nx-cloud": {
4
+ "factory": "./src/nx-cloud/generators/connect-to-nx-cloud/connect-to-nx-cloud",
5
+ "schema": "./src/nx-cloud/generators/connect-to-nx-cloud/schema.json",
6
+ "description": "Connect a workspace to Nx Cloud",
7
+ "x-hidden": true
8
+ },
9
+ "set-up-ai-agents": {
10
+ "factory": "./src/ai/set-up-ai-agents/set-up-ai-agents",
11
+ "schema": "./src/ai/set-up-ai-agents/schema.json",
12
+ "description": "Sets up the Nx MCP & rule files for common AI Agents",
13
+ "hidden": true
14
+ }
14
15
  }
15
- }
16
16
  }
package/migrations.json CHANGED
@@ -1,146 +1,146 @@
1
1
  {
2
- "generators": {
3
- "16.0.0-remove-nrwl-cli": {
4
- "cli": "nx",
5
- "version": "16.0.0-beta.0",
6
- "description": "Remove @nrwl/cli.",
7
- "implementation": "./src/migrations/update-16-0-0/remove-nrwl-cli"
8
- },
9
- "16.0.0-tokens-for-depends-on": {
10
- "cli": "nx",
11
- "version": "16.0.0-beta.9",
12
- "description": "Replace `dependsOn.projects` and `inputs` definitions with new configuration format.",
13
- "implementation": "./src/migrations/update-16-0-0/update-depends-on-to-tokens"
14
- },
15
- "16.0.0-update-nx-cloud-runner": {
16
- "cli": "nx",
17
- "version": "16.0.0-beta.0",
18
- "description": "Replace @nrwl/nx-cloud with nx-cloud",
19
- "implementation": "./src/migrations/update-16-0-0/update-nx-cloud-runner"
20
- },
21
- "16.2.0-remove-output-path-from-run-commands": {
22
- "cli": "nx",
23
- "version": "16.2.0-beta.0",
24
- "description": "Remove outputPath from run commands",
25
- "implementation": "./src/migrations/update-16-2-0/remove-run-commands-output-path"
26
- },
27
- "16.6.0-prefix-outputs": {
28
- "cli": "nx",
29
- "version": "16.6.0-beta.6",
30
- "description": "Prefix outputs with {workspaceRoot}/{projectRoot} if needed",
31
- "implementation": "./src/migrations/update-15-0-0/prefix-outputs"
32
- },
33
- "16.8.0-escape-dollar-sign-env": {
34
- "cli": "nx",
35
- "version": "16.8.0-beta.3",
36
- "description": "Escape $ in env variables",
37
- "implementation": "./src/migrations/update-16-8-0/escape-dollar-sign-env-variables",
38
- "x-repair-skip": true
39
- },
40
- "17.0.0-move-cache-directory": {
41
- "cli": "nx",
42
- "version": "17.0.0-beta.1",
43
- "description": "Updates the default cache directory to .nx/cache",
44
- "implementation": "./src/migrations/update-17-0-0/move-cache-directory"
45
- },
46
- "17.0.0-use-minimal-config-for-tasks-runner-options": {
47
- "cli": "nx",
48
- "version": "17.0.0-beta.3",
49
- "description": "Use minimal config for tasksRunnerOptions",
50
- "implementation": "./src/migrations/update-17-0-0/use-minimal-config-for-tasks-runner-options"
51
- },
52
- "rm-default-collection-npm-scope": {
53
- "version": "17.0.0-rc.1",
54
- "description": "Migration for v17.0.0-rc.1",
55
- "implementation": "./src/migrations/update-17-0-0/rm-default-collection-npm-scope"
56
- },
57
- "17.3.0-update-nx-wrapper": {
58
- "cli": "nx",
59
- "version": "17.3.0-beta.6",
60
- "description": "Updates the nx wrapper.",
61
- "implementation": "./src/migrations/update-17-3-0/update-nxw"
62
- },
63
- "18.0.0-disable-adding-plugins-for-existing-workspaces": {
64
- "cli": "nx",
65
- "version": "18.0.0-beta.2",
66
- "description": "Updates nx.json to disabled adding plugins when generating projects in an existing Nx workspace",
67
- "implementation": "./src/migrations/update-18-0-0/disable-crystal-for-existing-workspaces",
68
- "x-repair-skip": true
69
- },
70
- "move-default-base-to-nx-json-root": {
71
- "version": "18.1.0-beta.3",
72
- "description": "Moves affected.defaultBase to defaultBase in `nx.json`",
73
- "implementation": "./src/migrations/update-17-2-0/move-default-base"
74
- },
75
- "19-2-0-move-graph-cache-directory": {
76
- "cli": "nx",
77
- "version": "19.2.0-beta.2",
78
- "description": "Updates the default workspace data directory to .nx/workspace-data",
79
- "implementation": "./src/migrations/update-19-2-0/move-workspace-data-directory"
80
- },
81
- "19-2-2-update-nx-wrapper": {
82
- "cli": "nx",
83
- "version": "19.2.2-beta.0",
84
- "description": "Updates the nx wrapper.",
85
- "implementation": "./src/migrations/update-17-3-0/update-nxw"
86
- },
87
- "19-2-4-set-project-name": {
88
- "version": "19.2.4-beta.0",
89
- "description": "Set project name in nx.json explicitly",
90
- "implementation": "./src/migrations/update-19-2-4/set-project-name",
91
- "x-repair-skip": true
92
- },
93
- "move-use-daemon-process": {
94
- "version": "20.0.0-beta.7",
95
- "description": "Migration for v20.0.0-beta.7",
96
- "implementation": "./src/migrations/update-20-0-0/move-use-daemon-process"
97
- },
98
- "use-legacy-cache": {
99
- "version": "20.0.1",
100
- "description": "Set `useLegacyCache` to true for migrating workspaces",
101
- "implementation": "./src/migrations/update-20-0-1/use-legacy-cache",
102
- "x-repair-skip": true
103
- },
104
- "remove-legacy-cache": {
105
- "version": "21.0.0-beta.8",
106
- "description": "Removes the legacy cache configuration from nx.json",
107
- "implementation": "./src/migrations/update-21-0-0/remove-legacy-cache"
108
- },
109
- "remove-custom-tasks-runner": {
110
- "version": "21.0.0-beta.8",
111
- "description": "Removes the legacy cache configuration from nx.json",
112
- "implementation": "./src/migrations/update-21-0-0/remove-custom-tasks-runner"
113
- },
114
- "release-version-config-changes": {
115
- "version": "21.0.0-beta.11",
116
- "description": "Updates release version config based on the breaking changes in Nx v21",
117
- "implementation": "./src/migrations/update-21-0-0/release-version-config-changes"
118
- },
119
- "release-changelog-config-changes": {
120
- "version": "21.0.0-beta.11",
121
- "description": "Updates release changelog config based on the breaking changes in Nx v21",
122
- "implementation": "./src/migrations/update-21-0-0/release-changelog-config-changes"
123
- },
124
- "21-1-0-add-ignore-entries-for-nx-rule-files": {
125
- "version": "21.1.0-beta.2",
126
- "description": "Adds **/nx-rules.mdc and **/nx.instructions.md to .gitignore if not present",
127
- "implementation": "./src/migrations/update-21-1-0/add-gitignore-entry"
128
- },
129
- "22-0-0-release-version-config-changes": {
130
- "version": "22.0.0-beta.1",
131
- "description": "Updates release version config based on the breaking changes in Nx v22",
132
- "implementation": "./src/migrations/update-22-0-0/release-version-config-changes"
133
- },
134
- "22-0-0-consolidate-release-tag-config": {
135
- "version": "22.0.0-beta.2",
136
- "description": "Consolidates releaseTag* options into nested releaseTag object structure",
137
- "implementation": "./src/migrations/update-22-0-0/consolidate-release-tag-config"
138
- },
139
- "22-1-0-update-nx-wrapper": {
140
- "cli": "nx",
141
- "version": "22.1.0-beta.5",
142
- "description": "Updates the nx wrapper.",
143
- "implementation": "./src/migrations/update-22-1-0/update-nx-wrapper"
2
+ "generators": {
3
+ "16.0.0-remove-nrwl-cli": {
4
+ "cli": "nx",
5
+ "version": "16.0.0-beta.0",
6
+ "description": "Remove @nrwl/cli.",
7
+ "implementation": "./src/migrations/update-16-0-0/remove-nrwl-cli"
8
+ },
9
+ "16.0.0-tokens-for-depends-on": {
10
+ "cli": "nx",
11
+ "version": "16.0.0-beta.9",
12
+ "description": "Replace `dependsOn.projects` and `inputs` definitions with new configuration format.",
13
+ "implementation": "./src/migrations/update-16-0-0/update-depends-on-to-tokens"
14
+ },
15
+ "16.0.0-update-nx-cloud-runner": {
16
+ "cli": "nx",
17
+ "version": "16.0.0-beta.0",
18
+ "description": "Replace @nrwl/nx-cloud with nx-cloud",
19
+ "implementation": "./src/migrations/update-16-0-0/update-nx-cloud-runner"
20
+ },
21
+ "16.2.0-remove-output-path-from-run-commands": {
22
+ "cli": "nx",
23
+ "version": "16.2.0-beta.0",
24
+ "description": "Remove outputPath from run commands",
25
+ "implementation": "./src/migrations/update-16-2-0/remove-run-commands-output-path"
26
+ },
27
+ "16.6.0-prefix-outputs": {
28
+ "cli": "nx",
29
+ "version": "16.6.0-beta.6",
30
+ "description": "Prefix outputs with {workspaceRoot}/{projectRoot} if needed",
31
+ "implementation": "./src/migrations/update-15-0-0/prefix-outputs"
32
+ },
33
+ "16.8.0-escape-dollar-sign-env": {
34
+ "cli": "nx",
35
+ "version": "16.8.0-beta.3",
36
+ "description": "Escape $ in env variables",
37
+ "implementation": "./src/migrations/update-16-8-0/escape-dollar-sign-env-variables",
38
+ "x-repair-skip": true
39
+ },
40
+ "17.0.0-move-cache-directory": {
41
+ "cli": "nx",
42
+ "version": "17.0.0-beta.1",
43
+ "description": "Updates the default cache directory to .nx/cache",
44
+ "implementation": "./src/migrations/update-17-0-0/move-cache-directory"
45
+ },
46
+ "17.0.0-use-minimal-config-for-tasks-runner-options": {
47
+ "cli": "nx",
48
+ "version": "17.0.0-beta.3",
49
+ "description": "Use minimal config for tasksRunnerOptions",
50
+ "implementation": "./src/migrations/update-17-0-0/use-minimal-config-for-tasks-runner-options"
51
+ },
52
+ "rm-default-collection-npm-scope": {
53
+ "version": "17.0.0-rc.1",
54
+ "description": "Migration for v17.0.0-rc.1",
55
+ "implementation": "./src/migrations/update-17-0-0/rm-default-collection-npm-scope"
56
+ },
57
+ "17.3.0-update-nx-wrapper": {
58
+ "cli": "nx",
59
+ "version": "17.3.0-beta.6",
60
+ "description": "Updates the nx wrapper.",
61
+ "implementation": "./src/migrations/update-17-3-0/update-nxw"
62
+ },
63
+ "18.0.0-disable-adding-plugins-for-existing-workspaces": {
64
+ "cli": "nx",
65
+ "version": "18.0.0-beta.2",
66
+ "description": "Updates nx.json to disabled adding plugins when generating projects in an existing Nx workspace",
67
+ "implementation": "./src/migrations/update-18-0-0/disable-crystal-for-existing-workspaces",
68
+ "x-repair-skip": true
69
+ },
70
+ "move-default-base-to-nx-json-root": {
71
+ "version": "18.1.0-beta.3",
72
+ "description": "Moves affected.defaultBase to defaultBase in `nx.json`",
73
+ "implementation": "./src/migrations/update-17-2-0/move-default-base"
74
+ },
75
+ "19-2-0-move-graph-cache-directory": {
76
+ "cli": "nx",
77
+ "version": "19.2.0-beta.2",
78
+ "description": "Updates the default workspace data directory to .nx/workspace-data",
79
+ "implementation": "./src/migrations/update-19-2-0/move-workspace-data-directory"
80
+ },
81
+ "19-2-2-update-nx-wrapper": {
82
+ "cli": "nx",
83
+ "version": "19.2.2-beta.0",
84
+ "description": "Updates the nx wrapper.",
85
+ "implementation": "./src/migrations/update-17-3-0/update-nxw"
86
+ },
87
+ "19-2-4-set-project-name": {
88
+ "version": "19.2.4-beta.0",
89
+ "description": "Set project name in nx.json explicitly",
90
+ "implementation": "./src/migrations/update-19-2-4/set-project-name",
91
+ "x-repair-skip": true
92
+ },
93
+ "move-use-daemon-process": {
94
+ "version": "20.0.0-beta.7",
95
+ "description": "Migration for v20.0.0-beta.7",
96
+ "implementation": "./src/migrations/update-20-0-0/move-use-daemon-process"
97
+ },
98
+ "use-legacy-cache": {
99
+ "version": "20.0.1",
100
+ "description": "Set `useLegacyCache` to true for migrating workspaces",
101
+ "implementation": "./src/migrations/update-20-0-1/use-legacy-cache",
102
+ "x-repair-skip": true
103
+ },
104
+ "remove-legacy-cache": {
105
+ "version": "21.0.0-beta.8",
106
+ "description": "Removes the legacy cache configuration from nx.json",
107
+ "implementation": "./src/migrations/update-21-0-0/remove-legacy-cache"
108
+ },
109
+ "remove-custom-tasks-runner": {
110
+ "version": "21.0.0-beta.8",
111
+ "description": "Removes the legacy cache configuration from nx.json",
112
+ "implementation": "./src/migrations/update-21-0-0/remove-custom-tasks-runner"
113
+ },
114
+ "release-version-config-changes": {
115
+ "version": "21.0.0-beta.11",
116
+ "description": "Updates release version config based on the breaking changes in Nx v21",
117
+ "implementation": "./src/migrations/update-21-0-0/release-version-config-changes"
118
+ },
119
+ "release-changelog-config-changes": {
120
+ "version": "21.0.0-beta.11",
121
+ "description": "Updates release changelog config based on the breaking changes in Nx v21",
122
+ "implementation": "./src/migrations/update-21-0-0/release-changelog-config-changes"
123
+ },
124
+ "21-1-0-add-ignore-entries-for-nx-rule-files": {
125
+ "version": "21.1.0-beta.2",
126
+ "description": "Adds **/nx-rules.mdc and **/nx.instructions.md to .gitignore if not present",
127
+ "implementation": "./src/migrations/update-21-1-0/add-gitignore-entry"
128
+ },
129
+ "22-0-0-release-version-config-changes": {
130
+ "version": "22.0.0-beta.1",
131
+ "description": "Updates release version config based on the breaking changes in Nx v22",
132
+ "implementation": "./src/migrations/update-22-0-0/release-version-config-changes"
133
+ },
134
+ "22-0-0-consolidate-release-tag-config": {
135
+ "version": "22.0.0-beta.2",
136
+ "description": "Consolidates releaseTag* options into nested releaseTag object structure",
137
+ "implementation": "./src/migrations/update-22-0-0/consolidate-release-tag-config"
138
+ },
139
+ "22-1-0-update-nx-wrapper": {
140
+ "cli": "nx",
141
+ "version": "22.1.0-beta.5",
142
+ "description": "Updates the nx wrapper.",
143
+ "implementation": "./src/migrations/update-22-1-0/update-nx-wrapper"
144
+ }
144
145
  }
145
- }
146
146
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nx",
3
- "version": "22.1.0-canary.20251114-b3e6b03",
3
+ "version": "22.1.0-canary.20251117-e8576a8",
4
4
  "private": false,
5
5
  "description": "The core Nx plugin contains the core functionality of Nx like the project graph, nx commands and task orchestration.",
6
6
  "repository": {
@@ -83,16 +83,16 @@
83
83
  }
84
84
  },
85
85
  "optionalDependencies": {
86
- "@nx/nx-darwin-arm64": "22.1.0-canary.20251114-b3e6b03",
87
- "@nx/nx-darwin-x64": "22.1.0-canary.20251114-b3e6b03",
88
- "@nx/nx-freebsd-x64": "22.1.0-canary.20251114-b3e6b03",
89
- "@nx/nx-linux-arm-gnueabihf": "22.1.0-canary.20251114-b3e6b03",
90
- "@nx/nx-linux-arm64-gnu": "22.1.0-canary.20251114-b3e6b03",
91
- "@nx/nx-linux-arm64-musl": "22.1.0-canary.20251114-b3e6b03",
92
- "@nx/nx-linux-x64-gnu": "22.1.0-canary.20251114-b3e6b03",
93
- "@nx/nx-linux-x64-musl": "22.1.0-canary.20251114-b3e6b03",
94
- "@nx/nx-win32-arm64-msvc": "22.1.0-canary.20251114-b3e6b03",
95
- "@nx/nx-win32-x64-msvc": "22.1.0-canary.20251114-b3e6b03"
86
+ "@nx/nx-darwin-arm64": "22.1.0-canary.20251117-e8576a8",
87
+ "@nx/nx-darwin-x64": "22.1.0-canary.20251117-e8576a8",
88
+ "@nx/nx-freebsd-x64": "22.1.0-canary.20251117-e8576a8",
89
+ "@nx/nx-linux-arm-gnueabihf": "22.1.0-canary.20251117-e8576a8",
90
+ "@nx/nx-linux-arm64-gnu": "22.1.0-canary.20251117-e8576a8",
91
+ "@nx/nx-linux-arm64-musl": "22.1.0-canary.20251117-e8576a8",
92
+ "@nx/nx-linux-x64-gnu": "22.1.0-canary.20251117-e8576a8",
93
+ "@nx/nx-linux-x64-musl": "22.1.0-canary.20251117-e8576a8",
94
+ "@nx/nx-win32-arm64-msvc": "22.1.0-canary.20251117-e8576a8",
95
+ "@nx/nx-win32-x64-msvc": "22.1.0-canary.20251117-e8576a8"
96
96
  },
97
97
  "nx-migrations": {
98
98
  "migrations": "./migrations.json",
@@ -169,9 +169,6 @@
169
169
  "x86_64-unknown-freebsd"
170
170
  ]
171
171
  },
172
- "main": "./bin/nx.js",
173
- "types": "./bin/nx.d.ts",
174
- "type": "commonjs",
175
172
  "scripts": {
176
173
  "postinstall": "node ./bin/post-install || exit 0"
177
174
  }
package/presets/npm.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
- "pluginsConfig": {
3
- "@nx/js": {
4
- "analyzeSourceFiles": false
2
+ "pluginsConfig": {
3
+ "@nx/js": {
4
+ "analyzeSourceFiles": false
5
+ }
5
6
  }
6
- }
7
7
  }