Skip to content

Commit

Permalink
fix(core): fix migrating workspaces without any task runners configur…
Browse files Browse the repository at this point in the history
…ed (#10065)
  • Loading branch information
FrozenPandaz committed Apr 29, 2022
1 parent 0e5f4d5 commit d5877a9
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions packages/nx/src/command-line/migrate.ts
Expand Up @@ -888,11 +888,13 @@ async function generateMigrationsJsonAndUpdatePackageJson(
function showConnectToCloudMessage() {
try {
const nxJson = readJsonFile<NxJsonConfiguration>('nx.json');
const defaultRunnerIsUsed = Object.values(nxJson.tasksRunnerOptions).find(
(r: any) =>
r.runner == '@nrwl/workspace/tasks-runners/default' ||
r.runner == 'nx/tasks-runners/default'
);
const defaultRunnerIsUsed =
!nxJson.tasksRunnerOptions ||
Object.values(nxJson.tasksRunnerOptions).find(
(r: any) =>
r.runner == '@nrwl/workspace/tasks-runners/default' ||
r.runner == 'nx/tasks-runners/default'
);
return !!defaultRunnerIsUsed;
} catch {
return false;
Expand Down

1 comment on commit d5877a9

@vercel
Copy link

@vercel vercel bot commented on d5877a9 Apr 29, 2022

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-five.vercel.app
nx.dev
nx-dev-git-master-nrwl.vercel.app

Please sign in to comment.