nx 22.1.0-canary.20251118-3206c35 → 22.1.0-canary.20251119-7b9970f
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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nx",
|
|
3
|
-
"version": "22.1.0-canary.
|
|
3
|
+
"version": "22.1.0-canary.20251119-7b9970f",
|
|
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.
|
|
87
|
-
"@nx/nx-darwin-x64": "22.1.0-canary.
|
|
88
|
-
"@nx/nx-freebsd-x64": "22.1.0-canary.
|
|
89
|
-
"@nx/nx-linux-arm-gnueabihf": "22.1.0-canary.
|
|
90
|
-
"@nx/nx-linux-arm64-gnu": "22.1.0-canary.
|
|
91
|
-
"@nx/nx-linux-arm64-musl": "22.1.0-canary.
|
|
92
|
-
"@nx/nx-linux-x64-gnu": "22.1.0-canary.
|
|
93
|
-
"@nx/nx-linux-x64-musl": "22.1.0-canary.
|
|
94
|
-
"@nx/nx-win32-arm64-msvc": "22.1.0-canary.
|
|
95
|
-
"@nx/nx-win32-x64-msvc": "22.1.0-canary.
|
|
86
|
+
"@nx/nx-darwin-arm64": "22.1.0-canary.20251119-7b9970f",
|
|
87
|
+
"@nx/nx-darwin-x64": "22.1.0-canary.20251119-7b9970f",
|
|
88
|
+
"@nx/nx-freebsd-x64": "22.1.0-canary.20251119-7b9970f",
|
|
89
|
+
"@nx/nx-linux-arm-gnueabihf": "22.1.0-canary.20251119-7b9970f",
|
|
90
|
+
"@nx/nx-linux-arm64-gnu": "22.1.0-canary.20251119-7b9970f",
|
|
91
|
+
"@nx/nx-linux-arm64-musl": "22.1.0-canary.20251119-7b9970f",
|
|
92
|
+
"@nx/nx-linux-x64-gnu": "22.1.0-canary.20251119-7b9970f",
|
|
93
|
+
"@nx/nx-linux-x64-musl": "22.1.0-canary.20251119-7b9970f",
|
|
94
|
+
"@nx/nx-win32-arm64-msvc": "22.1.0-canary.20251119-7b9970f",
|
|
95
|
+
"@nx/nx-win32-x64-msvc": "22.1.0-canary.20251119-7b9970f"
|
|
96
96
|
},
|
|
97
97
|
"nx-migrations": {
|
|
98
98
|
"migrations": "./migrations.json",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../../../../../../packages/nx/src/command-line/release/utils/shared.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;
|
|
1
|
+
{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../../../../../../packages/nx/src/command-line/release/utils/shared.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAW7D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,iCAAiC,CAAC;AAC5E,OAAO,EAAE,SAAS,EAAqB,MAAM,OAAO,CAAC;AAErD,eAAO,MAAM,wBAAwB,QAEpC,CAAC;AAGF,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAC;AAE3D,MAAM,WAAW,gBAAgB;IAC/B,cAAc,EAAE,MAAM,CAAC;IACvB;;;OAGG;IACH,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,iBAAiB,EAAE;QACjB,MAAM,EAAE,MAAM,CAAC;QACf,MAAM,EAAE,MAAM,CAAC;QACf,IAAI,EAAE,MAAM,CAAC;QACb,oBAAoB,EAAE,MAAM,CAAC;QAC7B,cAAc,EAAE,M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CAChC,aAAa,EAAE,oBAAoB,EAAE,EACrC,8BAA8B,EAAE,GAAG,CAAC,oBAAoB,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC,EACtE,WAAW,EAAE,WAAW,GACvB,MAAM,EAAE,CA6FV;AAeD,wBAAgB,sBAAsB,CAAC,YAAY,EAAE,MAAM,EAAE,GAAG,IAAI,CAcnE;AAED,wBAAsB,4BAA4B,CAChD,YAAY,EAAE,YAAY,EAC1B,OAAO,EAAE,SAAS,EAAE,EACpB,QAAQ,EAAE,MAAM,EAAE,GAEpB,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE;IAAE,MAAM,EAAE,SAAS,CAAC;IAAC,qBAAqB,EAAE,OAAO,CAAA;CAAE,EAAE,CAAC,CAAC,CAwC5E"}
|
|
@@ -272,11 +272,11 @@ async function getCommitsRelevantToProjects(projectGraph, commits, projects) {
|
|
|
272
272
|
const projectSet = new Set(projects);
|
|
273
273
|
const relevantCommits = new Map();
|
|
274
274
|
for (const commit of commits) {
|
|
275
|
-
// Convert affectedFiles to FileChange[] format
|
|
276
|
-
const touchedFiles = commit.affectedFiles
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
})
|
|
275
|
+
// Convert affectedFiles to FileChange[] format with proper diff computation
|
|
276
|
+
const touchedFiles = (0, file_utils_1.calculateFileChanges)(commit.affectedFiles, {
|
|
277
|
+
base: `${commit.shortHash}^`,
|
|
278
|
+
head: commit.shortHash,
|
|
279
|
+
});
|
|
280
280
|
// Use the same affected detection logic as `nx affected`
|
|
281
281
|
const affectedGraph = await (0, affected_project_graph_1.filterAffected)(projectGraph, touchedFiles);
|
|
282
282
|
for (const projectName of Object.keys(affectedGraph.nodes)) {
|
|
@@ -401,20 +401,20 @@ async function startServer() {
|
|
|
401
401
|
if (!socket_utils_1.isWindows) {
|
|
402
402
|
(0, socket_utils_1.killSocketOrPath)();
|
|
403
403
|
}
|
|
404
|
+
setInterval(() => {
|
|
405
|
+
if ((0, cache_1.getDaemonProcessIdSync)() !== process.pid) {
|
|
406
|
+
return (0, shutdown_utils_1.handleServerProcessTermination)({
|
|
407
|
+
server,
|
|
408
|
+
reason: 'this process is no longer the current daemon (native)',
|
|
409
|
+
sockets: exports.openSockets,
|
|
410
|
+
});
|
|
411
|
+
}
|
|
412
|
+
}, 20).unref();
|
|
404
413
|
return new Promise(async (resolve, reject) => {
|
|
405
414
|
try {
|
|
406
415
|
server.listen((0, socket_utils_1.getFullOsSocketPath)(), async () => {
|
|
407
416
|
try {
|
|
408
417
|
logger_1.serverLogger.log(`Started listening on: ${(0, socket_utils_1.getFullOsSocketPath)()}`);
|
|
409
|
-
setInterval(() => {
|
|
410
|
-
if ((0, cache_1.getDaemonProcessIdSync)() !== process.pid) {
|
|
411
|
-
return (0, shutdown_utils_1.handleServerProcessTermination)({
|
|
412
|
-
server,
|
|
413
|
-
reason: 'this process is no longer the current daemon (native)',
|
|
414
|
-
sockets: exports.openSockets,
|
|
415
|
-
});
|
|
416
|
-
}
|
|
417
|
-
}, 20).unref();
|
|
418
418
|
// this triggers the storage of the lock file hash
|
|
419
419
|
daemonIsOutdated();
|
|
420
420
|
if (!(0, shutdown_utils_1.getWatcherInstance)()) {
|