Skip to content

Commit 5fb0d2d

Browse files
committed
fix: throw if no tsconfig.json found
closes #17
1 parent b1a1d18 commit 5fb0d2d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/targets/typescript.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,10 @@ export default async function build({
7272
`Couldn't parse '${project}'. There might be validation errors.`
7373
);
7474
}
75+
} else {
76+
throw new Error(
77+
`Couldn't find a ${chalk.blue('tsc')} in the project root.`
78+
);
7579
}
7680

7781
let tsc =

0 commit comments

Comments
 (0)