nx 22.4.0-canary.20260116-323554b → 22.4.0-canary.20260120-e586896
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/daemon/server/handle-hash-tasks.d.ts.map +1 -1
- package/src/daemon/server/handle-hash-tasks.js +2 -9
- package/src/native/nx.wasm32-wasi.wasm +0 -0
- package/src/tasks-runner/is-tui-enabled.d.ts.map +1 -1
- package/src/tasks-runner/is-tui-enabled.js +3 -1
- package/src/utils/installation-directory.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nx",
|
|
3
|
-
"version": "22.4.0-canary.
|
|
3
|
+
"version": "22.4.0-canary.20260120-e586896",
|
|
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.4.0-canary.
|
|
87
|
-
"@nx/nx-darwin-x64": "22.4.0-canary.
|
|
88
|
-
"@nx/nx-freebsd-x64": "22.4.0-canary.
|
|
89
|
-
"@nx/nx-linux-arm-gnueabihf": "22.4.0-canary.
|
|
90
|
-
"@nx/nx-linux-arm64-gnu": "22.4.0-canary.
|
|
91
|
-
"@nx/nx-linux-arm64-musl": "22.4.0-canary.
|
|
92
|
-
"@nx/nx-linux-x64-gnu": "22.4.0-canary.
|
|
93
|
-
"@nx/nx-linux-x64-musl": "22.4.0-canary.
|
|
94
|
-
"@nx/nx-win32-arm64-msvc": "22.4.0-canary.
|
|
95
|
-
"@nx/nx-win32-x64-msvc": "22.4.0-canary.
|
|
86
|
+
"@nx/nx-darwin-arm64": "22.4.0-canary.20260120-e586896",
|
|
87
|
+
"@nx/nx-darwin-x64": "22.4.0-canary.20260120-e586896",
|
|
88
|
+
"@nx/nx-freebsd-x64": "22.4.0-canary.20260120-e586896",
|
|
89
|
+
"@nx/nx-linux-arm-gnueabihf": "22.4.0-canary.20260120-e586896",
|
|
90
|
+
"@nx/nx-linux-arm64-gnu": "22.4.0-canary.20260120-e586896",
|
|
91
|
+
"@nx/nx-linux-arm64-musl": "22.4.0-canary.20260120-e586896",
|
|
92
|
+
"@nx/nx-linux-x64-gnu": "22.4.0-canary.20260120-e586896",
|
|
93
|
+
"@nx/nx-linux-x64-musl": "22.4.0-canary.20260120-e586896",
|
|
94
|
+
"@nx/nx-win32-arm64-msvc": "22.4.0-canary.20260120-e586896",
|
|
95
|
+
"@nx/nx-win32-x64-msvc": "22.4.0-canary.20260120-e586896"
|
|
96
96
|
},
|
|
97
97
|
"nx-migrations": {
|
|
98
98
|
"migrations": "./migrations.json",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"handle-hash-tasks.d.ts","sourceRoot":"","sources":["../../../../../../packages/nx/src/daemon/server/handle-hash-tasks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"handle-hash-tasks.d.ts","sourceRoot":"","sources":["../../../../../../packages/nx/src/daemon/server/handle-hash-tasks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAY1D,wBAAsB,eAAe,CAAC,OAAO,EAAE;IAC7C,aAAa,EAAE,GAAG,CAAC;IACnB,GAAG,EAAE,GAAG,CAAC;IACT,KAAK,EAAE,IAAI,EAAE,CAAC;IACd,SAAS,EAAE,SAAS,CAAC;IACrB,GAAG,EAAE,MAAM,CAAC;CACb;;;GA6BA"}
|
|
@@ -4,7 +4,6 @@ exports.handleHashTasks = handleHashTasks;
|
|
|
4
4
|
const project_graph_incremental_recomputation_1 = require("./project-graph-incremental-recomputation");
|
|
5
5
|
const task_hasher_1 = require("../../hasher/task-hasher");
|
|
6
6
|
const configuration_1 = require("../../config/configuration");
|
|
7
|
-
const error_types_1 = require("../../project-graph/error-types");
|
|
8
7
|
/**
|
|
9
8
|
* We use this not to recreated hasher for every hash operation
|
|
10
9
|
* TaskHasher has a cache inside, so keeping it around results in faster performance
|
|
@@ -12,15 +11,9 @@ const error_types_1 = require("../../project-graph/error-types");
|
|
|
12
11
|
let storedProjectGraph = null;
|
|
13
12
|
let storedHasher = null;
|
|
14
13
|
async function handleHashTasks(payload) {
|
|
15
|
-
const { error, projectGraph
|
|
16
|
-
let projectGraph = _graph;
|
|
14
|
+
const { error, projectGraph, allWorkspaceFiles, fileMap, rustReferences } = await (0, project_graph_incremental_recomputation_1.getCachedSerializedProjectGraphPromise)();
|
|
17
15
|
if (error) {
|
|
18
|
-
|
|
19
|
-
projectGraph = error.projectGraph;
|
|
20
|
-
}
|
|
21
|
-
else {
|
|
22
|
-
throw error;
|
|
23
|
-
}
|
|
16
|
+
throw error;
|
|
24
17
|
}
|
|
25
18
|
const nxJson = (0, configuration_1.readNxJson)();
|
|
26
19
|
if (projectGraph !== storedProjectGraph) {
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"is-tui-enabled.d.ts","sourceRoot":"","sources":["../../../../../packages/nx/src/tasks-runner/is-tui-enabled.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAE7D,OAAO,EAAE,MAAM,EAAE,MAAM,6BAA6B,CAAC;AAIrD,eAAO,MAAM,sBAAsB,QAAqB,CAAC;AAEzD;;GAEG;AACH,wBAAgB,YAAY,YAE3B;AAED;;;;;;;;;GASG;AACH,wBAAgB,YAAY,CAC1B,MAAM,EAAE,mBAAmB,EAC3B,MAAM,EAAE,MAAM,EACd,mBAAmB,UAAsD,
|
|
1
|
+
{"version":3,"file":"is-tui-enabled.d.ts","sourceRoot":"","sources":["../../../../../packages/nx/src/tasks-runner/is-tui-enabled.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAE7D,OAAO,EAAE,MAAM,EAAE,MAAM,6BAA6B,CAAC;AAIrD,eAAO,MAAM,sBAAsB,QAAqB,CAAC;AAEzD;;GAEG;AACH,wBAAgB,YAAY,YAE3B;AAED;;;;;;;;;GASG;AACH,wBAAgB,YAAY,CAC1B,MAAM,EAAE,mBAAmB,EAC3B,MAAM,EAAE,MAAM,EACd,mBAAmB,UAAsD,WAgE1E"}
|
|
@@ -25,7 +25,9 @@ function isTuiEnabled() {
|
|
|
25
25
|
*/
|
|
26
26
|
function shouldUseTui(nxJson, nxArgs, skipCapabilityCheck = process.env.NX_TUI_SKIP_CAPABILITY_CHECK === 'true') {
|
|
27
27
|
// If the current terminal/environment is not capable of displaying the TUI, we don't run it
|
|
28
|
-
const
|
|
28
|
+
const hasValidSize = process.stdout.columns > 0 && process.stdout.rows > 0;
|
|
29
|
+
const isCapable = skipCapabilityCheck ||
|
|
30
|
+
(process.stderr.isTTY && isUnicodeSupported() && hasValidSize);
|
|
29
31
|
if (typeof nxArgs.tui === 'boolean') {
|
|
30
32
|
if (nxArgs.tui && !isCapable) {
|
|
31
33
|
logger_1.logger.warn('Nx Terminal UI was not enabled as it is not supported in this environment.');
|
|
@@ -8,5 +8,5 @@ function getNxInstallationPath(root = workspace_root_1.workspaceRoot) {
|
|
|
8
8
|
return (0, path_1.join)(root, '.nx', 'installation');
|
|
9
9
|
}
|
|
10
10
|
function getNxRequirePaths(root = workspace_root_1.workspaceRoot) {
|
|
11
|
-
return [root,
|
|
11
|
+
return [getNxInstallationPath(root), root];
|
|
12
12
|
}
|