Skip to content

Commit

Permalink
fix(core): add better error message for invalid tools tsconfig (nrwl#…
Browse files Browse the repository at this point in the history
…7792)

Co-authored-by: Ben Callaghan <[email protected]>
  • Loading branch information
bcallaghan-et and Ben Callaghan authored Nov 18, 2021
1 parent 97e1544 commit d10b4ae
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion packages/workspace/src/command-line/workspace-generators.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,14 @@ function compileTools() {
}

function getToolsOutDir() {
return path.resolve(toolsDir, toolsTsConfig().compilerOptions.outDir);
const outDir = toolsTsConfig().compilerOptions.outDir;

if (!outDir) {
logger.error(`${toolsTsConfigPath} must specify an outDir`);
process.exit(1);
}

return path.resolve(toolsDir, outDir);
}

function compileToolsDir(outDir: string) {
Expand Down

0 comments on commit d10b4ae

Please sign in to comment.