nx 18.1.1 → 18.2.0-canary.20240316-b69047e
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": "18.
|
3
|
+
"version": "18.2.0-canary.20240316-b69047e",
|
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": {
|
@@ -66,7 +66,7 @@
|
|
66
66
|
"yargs-parser": "21.1.1",
|
67
67
|
"node-machine-id": "1.1.12",
|
68
68
|
"ora": "5.3.0",
|
69
|
-
"@nrwl/tao": "18.
|
69
|
+
"@nrwl/tao": "18.2.0-canary.20240316-b69047e"
|
70
70
|
},
|
71
71
|
"peerDependencies": {
|
72
72
|
"@swc-node/register": "^1.8.0",
|
@@ -81,16 +81,16 @@
|
|
81
81
|
}
|
82
82
|
},
|
83
83
|
"optionalDependencies": {
|
84
|
-
"@nx/nx-darwin-x64": "18.
|
85
|
-
"@nx/nx-darwin-arm64": "18.
|
86
|
-
"@nx/nx-linux-x64-gnu": "18.
|
87
|
-
"@nx/nx-linux-x64-musl": "18.
|
88
|
-
"@nx/nx-win32-x64-msvc": "18.
|
89
|
-
"@nx/nx-linux-arm64-gnu": "18.
|
90
|
-
"@nx/nx-linux-arm64-musl": "18.
|
91
|
-
"@nx/nx-linux-arm-gnueabihf": "18.
|
92
|
-
"@nx/nx-win32-arm64-msvc": "18.
|
93
|
-
"@nx/nx-freebsd-x64": "18.
|
84
|
+
"@nx/nx-darwin-x64": "18.2.0-canary.20240316-b69047e",
|
85
|
+
"@nx/nx-darwin-arm64": "18.2.0-canary.20240316-b69047e",
|
86
|
+
"@nx/nx-linux-x64-gnu": "18.2.0-canary.20240316-b69047e",
|
87
|
+
"@nx/nx-linux-x64-musl": "18.2.0-canary.20240316-b69047e",
|
88
|
+
"@nx/nx-win32-x64-msvc": "18.2.0-canary.20240316-b69047e",
|
89
|
+
"@nx/nx-linux-arm64-gnu": "18.2.0-canary.20240316-b69047e",
|
90
|
+
"@nx/nx-linux-arm64-musl": "18.2.0-canary.20240316-b69047e",
|
91
|
+
"@nx/nx-linux-arm-gnueabihf": "18.2.0-canary.20240316-b69047e",
|
92
|
+
"@nx/nx-win32-arm64-msvc": "18.2.0-canary.20240316-b69047e",
|
93
|
+
"@nx/nx-freebsd-x64": "18.2.0-canary.20240316-b69047e"
|
94
94
|
},
|
95
95
|
"nx-migrations": {
|
96
96
|
"migrations": "./migrations.json",
|
package/src/plugins/js/index.js
CHANGED
@@ -39,7 +39,7 @@ exports.createNodes = [
|
|
39
39
|
externalNodes: nodes,
|
40
40
|
};
|
41
41
|
}
|
42
|
-
const externalNodes = (0, lock_file_1.getLockFileNodes)(packageManager, lockFileContents, lockFileHash);
|
42
|
+
const externalNodes = (0, lock_file_1.getLockFileNodes)(packageManager, lockFileContents, lockFileHash, context);
|
43
43
|
parsedLockFile.externalNodes = externalNodes;
|
44
44
|
return {
|
45
45
|
externalNodes,
|
@@ -6,12 +6,12 @@ import { PackageManager } from '../../../utils/package-manager';
|
|
6
6
|
import { ProjectGraph, ProjectGraphExternalNode } from '../../../config/project-graph';
|
7
7
|
import { RawProjectGraphDependency } from '../../../project-graph/project-graph-builder';
|
8
8
|
import { PackageJson } from '../../../utils/package-json';
|
9
|
-
import { CreateDependenciesContext } from '../../../utils/nx-plugin';
|
9
|
+
import { CreateDependenciesContext, CreateNodesContext } from '../../../utils/nx-plugin';
|
10
10
|
export declare const LOCKFILES: string[];
|
11
11
|
/**
|
12
12
|
* Parses lock file and maps dependencies and metadata to {@link LockFileGraph}
|
13
13
|
*/
|
14
|
-
export declare function getLockFileNodes(packageManager: PackageManager, contents: string, lockFileHash: string): Record<string, ProjectGraphExternalNode>;
|
14
|
+
export declare function getLockFileNodes(packageManager: PackageManager, contents: string, lockFileHash: string, context: CreateNodesContext): Record<string, ProjectGraphExternalNode>;
|
15
15
|
/**
|
16
16
|
* Parses lock file and maps dependencies and metadata to {@link LockFileGraph}
|
17
17
|
*/
|
@@ -26,10 +26,10 @@ const PNPM_LOCK_PATH = (0, path_1.join)(workspace_root_1.workspaceRoot, PNPM_LOC
|
|
26
26
|
/**
|
27
27
|
* Parses lock file and maps dependencies and metadata to {@link LockFileGraph}
|
28
28
|
*/
|
29
|
-
function getLockFileNodes(packageManager, contents, lockFileHash) {
|
29
|
+
function getLockFileNodes(packageManager, contents, lockFileHash, context) {
|
30
30
|
try {
|
31
31
|
if (packageManager === 'yarn') {
|
32
|
-
const packageJson = (0, fileutils_1.readJsonFile)('package.json');
|
32
|
+
const packageJson = (0, fileutils_1.readJsonFile)((0, path_1.join)(context.workspaceRoot, 'package.json'));
|
33
33
|
return (0, yarn_parser_1.getYarnLockfileNodes)(contents, lockFileHash, packageJson);
|
34
34
|
}
|
35
35
|
if (packageManager === 'pnpm') {
|