Skip to content

Commit

Permalink
fix buildTs on Windows using npm-which (jestjs#8161)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeysal authored and SimenB committed Mar 19, 2019
1 parent aefa1eb commit 23e66a2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scripts/buildTs.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,11 @@ const packagesWithTs = packages.filter(p =>

const args = [
'--max-old-space-size=4096',
'node_modules/.bin/tsc',
path.resolve(
require.resolve('typescript/package.json'),
'..',
require('typescript/package.json').bin.tsc
),
'-b',
...packagesWithTs,
...process.argv.slice(2),
Expand Down

0 comments on commit 23e66a2

Please sign in to comment.