nx 20.2.1 → 20.2.2
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.2.
|
3
|
+
"version": "20.2.2",
|
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.2.
|
85
|
-
"@nx/nx-darwin-x64": "20.2.
|
86
|
-
"@nx/nx-freebsd-x64": "20.2.
|
87
|
-
"@nx/nx-linux-arm-gnueabihf": "20.2.
|
88
|
-
"@nx/nx-linux-arm64-gnu": "20.2.
|
89
|
-
"@nx/nx-linux-arm64-musl": "20.2.
|
90
|
-
"@nx/nx-linux-x64-gnu": "20.2.
|
91
|
-
"@nx/nx-linux-x64-musl": "20.2.
|
92
|
-
"@nx/nx-win32-arm64-msvc": "20.2.
|
93
|
-
"@nx/nx-win32-x64-msvc": "20.2.
|
84
|
+
"@nx/nx-darwin-arm64": "20.2.2",
|
85
|
+
"@nx/nx-darwin-x64": "20.2.2",
|
86
|
+
"@nx/nx-freebsd-x64": "20.2.2",
|
87
|
+
"@nx/nx-linux-arm-gnueabihf": "20.2.2",
|
88
|
+
"@nx/nx-linux-arm64-gnu": "20.2.2",
|
89
|
+
"@nx/nx-linux-arm64-musl": "20.2.2",
|
90
|
+
"@nx/nx-linux-x64-gnu": "20.2.2",
|
91
|
+
"@nx/nx-linux-x64-musl": "20.2.2",
|
92
|
+
"@nx/nx-win32-arm64-msvc": "20.2.2",
|
93
|
+
"@nx/nx-win32-x64-msvc": "20.2.2"
|
94
94
|
},
|
95
95
|
"nx-migrations": {
|
96
96
|
"migrations": "./migrations.json",
|
@@ -109,6 +109,7 @@
|
|
109
109
|
"@nx/expo",
|
110
110
|
"@nx/express",
|
111
111
|
"@nx/gradle",
|
112
|
+
"@nx/module-federation",
|
112
113
|
"@nx/nest",
|
113
114
|
"@nx/next",
|
114
115
|
"@nx/node",
|
@@ -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,
|