Skip to content

Commit

Permalink
fix(core): interactive migrations should be prompt when necessary (#1…
Browse files Browse the repository at this point in the history
  • Loading branch information
ZackDeRose authored Mar 9, 2023
1 parent 24b82ed commit 4a8b7ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/nx/src/command-line/migrate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1139,7 +1139,7 @@ async function generateMigrationsJsonAndUpdatePackageJson(
if (
['nx', '@nrwl/workspace'].includes(opts.targetPackage) &&
(await isMigratingToNewMajor(from, opts.targetVersion)) &&
!isCI
!isCI()
) {
const useCloud = await connectToNxCloudCommand(
messages.getPromptMessage('nxCloudMigration')
Expand Down Expand Up @@ -1169,7 +1169,7 @@ async function generateMigrationsJsonAndUpdatePackageJson(
fetch: createFetcher(),
from: opts.from,
to: opts.to,
interactive: opts.interactive && !isCI,
interactive: opts.interactive && !isCI(),
excludeAppliedMigrations: opts.excludeAppliedMigrations,
});

Expand Down

1 comment on commit 4a8b7ed

@vercel
Copy link

@vercel vercel bot commented on 4a8b7ed Mar 9, 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
nx-dev-nrwl.vercel.app
nx-dev-git-master-nrwl.vercel.app
nx-five.vercel.app

Please sign in to comment.