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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nx",
3
- "version": "19.1.0-canary.20240521-1255603",
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.20240521-1255603"
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.20240521-1255603",
84
- "@nx/nx-darwin-arm64": "19.1.0-canary.20240521-1255603",
85
- "@nx/nx-linux-x64-gnu": "19.1.0-canary.20240521-1255603",
86
- "@nx/nx-linux-x64-musl": "19.1.0-canary.20240521-1255603",
87
- "@nx/nx-win32-x64-msvc": "19.1.0-canary.20240521-1255603",
88
- "@nx/nx-linux-arm64-gnu": "19.1.0-canary.20240521-1255603",
89
- "@nx/nx-linux-arm64-musl": "19.1.0-canary.20240521-1255603",
90
- "@nx/nx-linux-arm-gnueabihf": "19.1.0-canary.20240521-1255603",
91
- "@nx/nx-win32-arm64-msvc": "19.1.0-canary.20240521-1255603",
92
- "@nx/nx-freebsd-x64": "19.1.0-canary.20240521-1255603"
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
- const depsBeforeMigrations = getStringifiedPackageJsonDeps(root);
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
- const depsAfterMigrations = getStringifiedPackageJsonDeps(root);
942
- if (depsBeforeMigrations !== depsAfterMigrations) {
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
- tags.push((0, utils_1.interpolate)(releaseGroup.releaseTagPattern, {
166
- version: projectVersionData.newVersion,
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
  }
@@ -109,6 +109,7 @@ export interface ProjectMetadata {
109
109
  targetGroups?: Record<string, string[]>;
110
110
  }
111
111
  export interface TargetMetadata {
112
+ [k: string]: any;
112
113
  description?: string;
113
114
  technologies?: string[];
114
115
  }