nx 20.3.0-canary.20241207-de8b189 → 20.3.0-canary.20241210-ecba861
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": "20.3.0-canary.
|
3
|
+
"version": "20.3.0-canary.20241210-ecba861",
|
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": {
|
@@ -81,16 +81,16 @@
|
|
81
81
|
}
|
82
82
|
},
|
83
83
|
"optionalDependencies": {
|
84
|
-
"@nx/nx-darwin-arm64": "20.3.0-canary.
|
85
|
-
"@nx/nx-darwin-x64": "20.3.0-canary.
|
86
|
-
"@nx/nx-freebsd-x64": "20.3.0-canary.
|
87
|
-
"@nx/nx-linux-arm-gnueabihf": "20.3.0-canary.
|
88
|
-
"@nx/nx-linux-arm64-gnu": "20.3.0-canary.
|
89
|
-
"@nx/nx-linux-arm64-musl": "20.3.0-canary.
|
90
|
-
"@nx/nx-linux-x64-gnu": "20.3.0-canary.
|
91
|
-
"@nx/nx-linux-x64-musl": "20.3.0-canary.
|
92
|
-
"@nx/nx-win32-arm64-msvc": "20.3.0-canary.
|
93
|
-
"@nx/nx-win32-x64-msvc": "20.3.0-canary.
|
84
|
+
"@nx/nx-darwin-arm64": "20.3.0-canary.20241210-ecba861",
|
85
|
+
"@nx/nx-darwin-x64": "20.3.0-canary.20241210-ecba861",
|
86
|
+
"@nx/nx-freebsd-x64": "20.3.0-canary.20241210-ecba861",
|
87
|
+
"@nx/nx-linux-arm-gnueabihf": "20.3.0-canary.20241210-ecba861",
|
88
|
+
"@nx/nx-linux-arm64-gnu": "20.3.0-canary.20241210-ecba861",
|
89
|
+
"@nx/nx-linux-arm64-musl": "20.3.0-canary.20241210-ecba861",
|
90
|
+
"@nx/nx-linux-x64-gnu": "20.3.0-canary.20241210-ecba861",
|
91
|
+
"@nx/nx-linux-x64-musl": "20.3.0-canary.20241210-ecba861",
|
92
|
+
"@nx/nx-win32-arm64-msvc": "20.3.0-canary.20241210-ecba861",
|
93
|
+
"@nx/nx-win32-x64-msvc": "20.3.0-canary.20241210-ecba861"
|
94
94
|
},
|
95
95
|
"nx-migrations": {
|
96
96
|
"migrations": "./migrations.json",
|
@@ -84,14 +84,15 @@ async function getGitDiff(from, to = 'HEAD') {
|
|
84
84
|
else {
|
85
85
|
range = `${from}..${to}`;
|
86
86
|
}
|
87
|
-
// Use
|
88
|
-
const
|
87
|
+
// Use unique enough separators that we can be relatively certain will not occur within the commit message itself
|
88
|
+
const commitMetadataSeparator = '§§§';
|
89
|
+
const commitsSeparator = '|@-------@|';
|
89
90
|
// https://git-scm.com/docs/pretty-formats
|
90
91
|
const args = [
|
91
92
|
'--no-pager',
|
92
93
|
'log',
|
93
94
|
range,
|
94
|
-
`--pretty="
|
95
|
+
`--pretty="${commitsSeparator}%n%s${commitMetadataSeparator}%h${commitMetadataSeparator}%an${commitMetadataSeparator}%ae%n%b"`,
|
95
96
|
'--name-status',
|
96
97
|
];
|
97
98
|
// Support cases where the nx workspace root is located at a nested path within the git repo
|
@@ -101,11 +102,11 @@ async function getGitDiff(from, to = 'HEAD') {
|
|
101
102
|
}
|
102
103
|
const r = await (0, exec_command_1.execCommand)('git', args);
|
103
104
|
return r
|
104
|
-
.split(
|
105
|
+
.split(`${commitsSeparator}\n`)
|
105
106
|
.splice(1)
|
106
107
|
.map((line) => {
|
107
108
|
const [firstLine, ..._body] = line.split('\n');
|
108
|
-
const [message, shortHash, authorName, authorEmail] = firstLine.split(
|
109
|
+
const [message, shortHash, authorName, authorEmail] = firstLine.split(commitMetadataSeparator);
|
109
110
|
const r = {
|
110
111
|
message,
|
111
112
|
shortHash,
|
Binary file
|
@@ -81,8 +81,8 @@ function readTargetsFromPackageJson(packageJson, nxJson) {
|
|
81
81
|
const { scripts, nx, private: isPrivate } = packageJson ?? {};
|
82
82
|
const res = {};
|
83
83
|
const includedScripts = nx?.includedScripts || Object.keys(scripts ?? {});
|
84
|
-
packageManagerCommand ??= (0, package_manager_1.getPackageManagerCommand)();
|
85
84
|
for (const script of includedScripts) {
|
85
|
+
packageManagerCommand ??= (0, package_manager_1.getPackageManagerCommand)();
|
86
86
|
res[script] = buildTargetFromScript(script, scripts, packageManagerCommand);
|
87
87
|
}
|
88
88
|
for (const targetName in nx?.targets) {
|