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)
  • Loading branch information
AgentEnder authored Apr 21, 2023
1 parent f43ac5b commit 505b5dc
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

1 comment on commit 505b5dc

@vercel
Copy link

@vercel vercel bot commented on 505b5dc Apr 21, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

nx-dev – ./

nx-dev-nrwl.vercel.app
nx-dev-git-master-nrwl.vercel.app
nx-five.vercel.app
nx.dev

Please sign in to comment.