Skip to content

Commit

Permalink
fix(core): nx cloud prompt during migrate doesn't skip connection (#2…
Browse files Browse the repository at this point in the history
…1588)

Co-authored-by: Philip Fulcher <philipfulcher@Philips-MacBook-Air.local>
  • Loading branch information
philipjfulcher and Philip Fulcher authored Feb 4, 2024
1 parent cc282b2 commit 7ca576b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/nx/src/command-line/connect/connect-to-nx-cloud.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ export async function connectToNxCloudCommand(): Promise<boolean> {

export async function connectToNxCloudWithPrompt(command: string) {
const setNxCloud = await nxCloudPrompt('setupNxCloud');
const useCloud = setNxCloud ? await connectToNxCloudCommand() : false;
const useCloud =
setNxCloud === 'yes' ? await connectToNxCloudCommand() : false;
await recordStat({
command,
nxVersion,
Expand Down

0 comments on commit 7ca576b

Please sign in to comment.