Skip to content

Commit

Permalink
fix(core): hide message when migrating to a new major and already con…
Browse files Browse the repository at this point in the history
…nected to cloud (#16466)

(cherry picked from commit 505b5dc)
  • Loading branch information
AgentEnder authored and FrozenPandaz committed Apr 25, 2023
1 parent 1f714fd commit 2ca198b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/nx/src/command-line/migrate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ import { getNxRequirePaths } from '../utils/installation-directory';
import { readNxJson } from '../config/configuration';
import { runNxSync } from '../utils/child-process';
import { daemonClient } from '../daemon/client/client';
import { isNxCloudUsed } from '../utils/nx-cloud-utils';

export interface ResolvedMigrationConfiguration extends MigrationsJson {
packageGroup?: ArrayPackageGroup;
Expand Down Expand Up @@ -1169,7 +1170,8 @@ async function generateMigrationsJsonAndUpdatePackageJson(
if (
['nx', '@nrwl/workspace'].includes(opts.targetPackage) &&
(await isMigratingToNewMajor(from, opts.targetVersion)) &&
!isCI()
!isCI() &&
!isNxCloudUsed()
) {
const useCloud = await connectToNxCloudCommand(
messages.getPromptMessage('nxCloudMigration')
Expand Down

0 comments on commit 2ca198b

Please sign in to comment.