Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(core): fix migrating workspaces without any task runners configured #10065

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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