Skip to content

Commit

Permalink
fix(core): print a better error when tasksRunnerOptions are missing
Browse files Browse the repository at this point in the history
  • Loading branch information
vsavkin committed Jun 9, 2022
1 parent 7f4abd9 commit 48246e8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/nx/src/tasks-runner/run-command.ts
Expand Up @@ -255,6 +255,12 @@ export function getRunner(
} {
let runner = nxArgs.runner;
runner = runner || 'default';
if (!nxJson.tasksRunnerOptions) {
output.error({
title: `Could not find any runner configurations in nx.json`,
});
process.exit(1);
}
if (nxJson.tasksRunnerOptions[runner]) {
let modulePath: string = nxJson.tasksRunnerOptions[runner].runner;

Expand Down

0 comments on commit 48246e8

Please sign in to comment.