nx 19.1.0-canary.20240521-1255603 → 19.1.0-canary.20240522-89fdd42
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 +12 -12
- package/src/command-line/migrate/migrate.js +11 -4
- package/src/command-line/release/utils/shared.js +5 -3
- package/src/config/workspace-json-project-json.d.ts +1 -0
- package/src/core/graph/main.js +1 -1
- package/src/plugins/target-defaults/target-defaults-plugin.d.ts +31 -0
- package/src/plugins/target-defaults/target-defaults-plugin.js +9 -0
- package/src/project-graph/utils/retrieve-workspace-files.d.ts +3 -3
- package/src/utils/package-json.d.ts +1 -1
- package/src/utils/package-json.js +8 -2
- package/src/utils/package-manager.d.ts +1 -1
- package/src/utils/package-manager.js +7 -5
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "nx",
|
3
|
-
"version": "19.1.0-canary.
|
3
|
+
"version": "19.1.0-canary.20240522-89fdd42",
|
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": {
|
@@ -65,7 +65,7 @@
|
|
65
65
|
"yargs-parser": "21.1.1",
|
66
66
|
"node-machine-id": "1.1.12",
|
67
67
|
"ora": "5.3.0",
|
68
|
-
"@nrwl/tao": "19.1.0-canary.
|
68
|
+
"@nrwl/tao": "19.1.0-canary.20240522-89fdd42"
|
69
69
|
},
|
70
70
|
"peerDependencies": {
|
71
71
|
"@swc-node/register": "^1.8.0",
|
@@ -80,16 +80,16 @@
|
|
80
80
|
}
|
81
81
|
},
|
82
82
|
"optionalDependencies": {
|
83
|
-
"@nx/nx-darwin-x64": "19.1.0-canary.
|
84
|
-
"@nx/nx-darwin-arm64": "19.1.0-canary.
|
85
|
-
"@nx/nx-linux-x64-gnu": "19.1.0-canary.
|
86
|
-
"@nx/nx-linux-x64-musl": "19.1.0-canary.
|
87
|
-
"@nx/nx-win32-x64-msvc": "19.1.0-canary.
|
88
|
-
"@nx/nx-linux-arm64-gnu": "19.1.0-canary.
|
89
|
-
"@nx/nx-linux-arm64-musl": "19.1.0-canary.
|
90
|
-
"@nx/nx-linux-arm-gnueabihf": "19.1.0-canary.
|
91
|
-
"@nx/nx-win32-arm64-msvc": "19.1.0-canary.
|
92
|
-
"@nx/nx-freebsd-x64": "19.1.0-canary.
|
83
|
+
"@nx/nx-darwin-x64": "19.1.0-canary.20240522-89fdd42",
|
84
|
+
"@nx/nx-darwin-arm64": "19.1.0-canary.20240522-89fdd42",
|
85
|
+
"@nx/nx-linux-x64-gnu": "19.1.0-canary.20240522-89fdd42",
|
86
|
+
"@nx/nx-linux-x64-musl": "19.1.0-canary.20240522-89fdd42",
|
87
|
+
"@nx/nx-win32-x64-msvc": "19.1.0-canary.20240522-89fdd42",
|
88
|
+
"@nx/nx-linux-arm64-gnu": "19.1.0-canary.20240522-89fdd42",
|
89
|
+
"@nx/nx-linux-arm64-musl": "19.1.0-canary.20240522-89fdd42",
|
90
|
+
"@nx/nx-linux-arm-gnueabihf": "19.1.0-canary.20240522-89fdd42",
|
91
|
+
"@nx/nx-win32-arm64-msvc": "19.1.0-canary.20240522-89fdd42",
|
92
|
+
"@nx/nx-freebsd-x64": "19.1.0-canary.20240522-89fdd42"
|
93
93
|
},
|
94
94
|
"nx-migrations": {
|
95
95
|
"migrations": "./migrations.json",
|
@@ -874,7 +874,14 @@ function runInstall() {
|
|
874
874
|
(0, child_process_1.execSync)(pmCommands.install, { stdio: [0, 1, 2] });
|
875
875
|
}
|
876
876
|
async function executeMigrations(root, migrations, isVerbose, shouldCreateCommits, commitPrefix) {
|
877
|
-
|
877
|
+
let initialDeps = getStringifiedPackageJsonDeps(root);
|
878
|
+
const installDepsIfChanged = () => {
|
879
|
+
const currentDeps = getStringifiedPackageJsonDeps(root);
|
880
|
+
if (initialDeps !== currentDeps) {
|
881
|
+
runInstall();
|
882
|
+
}
|
883
|
+
initialDeps = currentDeps;
|
884
|
+
};
|
878
885
|
const migrationsWithNoChanges = [];
|
879
886
|
const sortedMigrations = migrations.sort((a, b) => {
|
880
887
|
// special case for the split configuration migration to run first
|
@@ -915,6 +922,7 @@ async function executeMigrations(root, migrations, isVerbose, shouldCreateCommit
|
|
915
922
|
loggingQueue.forEach((log) => logger_1.logger.info(' ' + log));
|
916
923
|
}
|
917
924
|
if (shouldCreateCommits) {
|
925
|
+
installDepsIfChanged();
|
918
926
|
const commitMessage = `${commitPrefix}${m.name}`;
|
919
927
|
try {
|
920
928
|
const committedSha = commitChanges(commitMessage);
|
@@ -938,9 +946,8 @@ async function executeMigrations(root, migrations, isVerbose, shouldCreateCommit
|
|
938
946
|
throw e;
|
939
947
|
}
|
940
948
|
}
|
941
|
-
|
942
|
-
|
943
|
-
runInstall();
|
949
|
+
if (!shouldCreateCommits) {
|
950
|
+
installDepsIfChanged();
|
944
951
|
}
|
945
952
|
return migrationsWithNoChanges;
|
946
953
|
}
|
@@ -162,9 +162,11 @@ function createGitTagValues(releaseGroups, releaseGroupToFilteredProjects, versi
|
|
162
162
|
}
|
163
163
|
// For fixed groups we want one tag for the overall group
|
164
164
|
const projectVersionData = versionData[releaseGroupProjectNames[0]]; // all at the same version, so we can just pick the first one
|
165
|
-
|
166
|
-
|
167
|
-
|
165
|
+
if (projectVersionData.newVersion !== null) {
|
166
|
+
tags.push((0, utils_1.interpolate)(releaseGroup.releaseTagPattern, {
|
167
|
+
version: projectVersionData.newVersion,
|
168
|
+
}));
|
169
|
+
}
|
168
170
|
}
|
169
171
|
return tags;
|
170
172
|
}
|