Skip to content

Commit

Permalink
fix(js): log config file errors correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
Coly010 committed May 30, 2023
1 parent c8a264a commit 88af4b1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/js/src/utils/typescript/run-type-check.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,8 @@ async function setupTypeScript(options: TypeCheckOptions) {
options;
const config = readTsConfig(tsConfigPath);
if (config.errors.length) {
throw new Error(`Invalid config file: ${config.errors}`);
const errorMessages = config.errors.map((e) => e.messageText).join('\n');
throw new Error(`Invalid config file: ${errorMessages}`);
}

const emitOptions =
Expand Down

0 comments on commit 88af4b1

Please sign in to comment.