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
  • Loading branch information
AgentEnder committed Apr 21, 2023
1 parent 258cda3 commit 493b357
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 @@ -58,6 +58,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 @@ -1192,7 +1193,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 493b357

Please sign in to comment.