Use shell: true when spawning tsc

This commit is contained in:
Felix Becker 2018-10-16 13:19:31 +02:00
parent 2f1338cc6b
commit 91a8bf04fc

View File

@ -217,6 +217,7 @@ export async function unusedExports(): Promise<void> {
export function typescript(): ChildProcess {
return spawn(__dirname + '/node_modules/.bin/tsc', ['-p', __dirname + '/tsconfig.dist.json', '--pretty'], {
stdio: 'inherit',
shell: true,
})
}
@ -226,6 +227,7 @@ export function watchTypescript(): ChildProcess {
['-p', __dirname + '/tsconfig.dist.json', '--watch', '--preserveWatchOutput', '--pretty'],
{
stdio: 'inherit',
shell: true,
}
)
}