nx 20.4.0-canary.20250125-15fc599 → 20.4.0-rc.0
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/package.json +11 -11
- package/src/command-line/release/publish.js +11 -0
- package/src/core/graph/main.js +1 -1
- package/src/core/graph/styles.js +1 -1
- package/src/daemon/client/client.d.ts +3 -0
- package/src/daemon/client/client.js +15 -0
- package/src/daemon/message-types/run-tasks-execution-hooks.d.ts +13 -0
- package/src/daemon/message-types/run-tasks-execution-hooks.js +19 -0
- package/src/daemon/server/handle-tasks-execution-hooks.d.ts +19 -0
- package/src/daemon/server/handle-tasks-execution-hooks.js +35 -0
- package/src/daemon/server/server.js +8 -0
- package/src/devkit-exports.d.ts +6 -2
- package/src/native/nx.wasm32-wasi.wasm +0 -0
- package/src/plugins/js/project-graph/build-dependencies/target-project-locator.js +1 -4
- package/src/plugins/js/utils/packages.js +2 -16
- package/src/project-graph/plugins/get-plugins.js +2 -17
- package/src/project-graph/plugins/isolation/enabled.d.ts +1 -0
- package/src/project-graph/plugins/isolation/enabled.js +19 -0
- package/src/project-graph/plugins/isolation/messaging.d.ts +46 -7
- package/src/project-graph/plugins/isolation/messaging.js +5 -1
- package/src/project-graph/plugins/isolation/plugin-pool.js +46 -0
- package/src/project-graph/plugins/isolation/plugin-worker.js +40 -0
- package/src/project-graph/plugins/load-resolved-plugin.js +4 -1
- package/src/project-graph/plugins/loaded-nx-plugin.d.ts +3 -5
- package/src/project-graph/plugins/loaded-nx-plugin.js +27 -0
- package/src/project-graph/plugins/public-api.d.ts +26 -6
- package/src/project-graph/plugins/tasks-execution-hooks.d.ts +3 -0
- package/src/project-graph/plugins/tasks-execution-hooks.js +65 -0
- package/src/project-graph/utils/retrieve-workspace-files.js +1 -1
- package/src/tasks-runner/life-cycle.d.ts +7 -0
- package/src/tasks-runner/run-command.d.ts +2 -4
- package/src/tasks-runner/run-command.js +18 -2
- package/src/tasks-runner/task-orchestrator.js +6 -2
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "nx",
|
3
|
-
"version": "20.4.0-
|
3
|
+
"version": "20.4.0-rc.0",
|
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": {
|
@@ -82,16 +82,16 @@
|
|
82
82
|
}
|
83
83
|
},
|
84
84
|
"optionalDependencies": {
|
85
|
-
"@nx/nx-darwin-arm64": "20.4.0-
|
86
|
-
"@nx/nx-darwin-x64": "20.4.0-
|
87
|
-
"@nx/nx-freebsd-x64": "20.4.0-
|
88
|
-
"@nx/nx-linux-arm-gnueabihf": "20.4.0-
|
89
|
-
"@nx/nx-linux-arm64-gnu": "20.4.0-
|
90
|
-
"@nx/nx-linux-arm64-musl": "20.4.0-
|
91
|
-
"@nx/nx-linux-x64-gnu": "20.4.0-
|
92
|
-
"@nx/nx-linux-x64-musl": "20.4.0-
|
93
|
-
"@nx/nx-win32-arm64-msvc": "20.4.0-
|
94
|
-
"@nx/nx-win32-x64-msvc": "20.4.0-
|
85
|
+
"@nx/nx-darwin-arm64": "20.4.0-rc.0",
|
86
|
+
"@nx/nx-darwin-x64": "20.4.0-rc.0",
|
87
|
+
"@nx/nx-freebsd-x64": "20.4.0-rc.0",
|
88
|
+
"@nx/nx-linux-arm-gnueabihf": "20.4.0-rc.0",
|
89
|
+
"@nx/nx-linux-arm64-gnu": "20.4.0-rc.0",
|
90
|
+
"@nx/nx-linux-arm64-musl": "20.4.0-rc.0",
|
91
|
+
"@nx/nx-linux-x64-gnu": "20.4.0-rc.0",
|
92
|
+
"@nx/nx-linux-x64-musl": "20.4.0-rc.0",
|
93
|
+
"@nx/nx-win32-arm64-msvc": "20.4.0-rc.0",
|
94
|
+
"@nx/nx-win32-x64-msvc": "20.4.0-rc.0"
|
95
95
|
},
|
96
96
|
"nx-migrations": {
|
97
97
|
"migrations": "./migrations.json",
|
@@ -15,6 +15,8 @@ const config_1 = require("./config/config");
|
|
15
15
|
const deep_merge_json_1 = require("./config/deep-merge-json");
|
16
16
|
const filter_release_groups_1 = require("./config/filter-release-groups");
|
17
17
|
const print_config_1 = require("./utils/print-config");
|
18
|
+
const workspace_root_1 = require("../../utils/workspace-root");
|
19
|
+
const tasks_execution_hooks_1 = require("../../project-graph/plugins/tasks-execution-hooks");
|
18
20
|
const releasePublishCLIHandler = (args) => (0, handle_errors_1.handleErrors)(args.verbose, async () => {
|
19
21
|
const publishProjectsResult = await createAPI({})(args);
|
20
22
|
// If all projects are published successfully, return 0, otherwise return 1
|
@@ -154,6 +156,10 @@ async function runPublishOnProjects(args, projectGraph, nxJson, projectNames, ex
|
|
154
156
|
`This is usually caused by not having an appropriate plugin, such as "@nx/js" installed, which will add the appropriate "${requiredTargetName}" target for you automatically.`,
|
155
157
|
].join('\n')}\n`);
|
156
158
|
}
|
159
|
+
await (0, tasks_execution_hooks_1.runPreTasksExecution)({
|
160
|
+
workspaceRoot: workspace_root_1.workspaceRoot,
|
161
|
+
nxJsonConfiguration: nxJson,
|
162
|
+
});
|
157
163
|
/**
|
158
164
|
* Run the relevant nx-release-publish executor on each of the selected projects.
|
159
165
|
*/
|
@@ -170,5 +176,10 @@ async function runPublishOnProjects(args, projectGraph, nxJson, projectNames, ex
|
|
170
176
|
code: taskData.code,
|
171
177
|
};
|
172
178
|
}
|
179
|
+
await (0, tasks_execution_hooks_1.runPostTasksExecution)({
|
180
|
+
taskResults: commandResults,
|
181
|
+
workspaceRoot: workspace_root_1.workspaceRoot,
|
182
|
+
nxJsonConfiguration: nxJson,
|
183
|
+
});
|
173
184
|
return publishProjectsResult;
|
174
185
|
}
|