We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e05aed commit 06fe824Copy full SHA for 06fe824
test/utils/tsc.ts
@@ -1,8 +1,10 @@
1
import util from "util";
2
3
-const exec = util.promisify(require('child_process').exec);
4
-const pathToTsc = `./node_modules/.bin/tsc`;
+const exec = util.promisify(require("child_process").exec);
5
6
export async function typecheck(pathToIndex: string) {
7
- await exec(`${pathToTsc} ${pathToIndex} --noEmit`);
+ const cmd = `tsc ${pathToIndex} --noEmit`;
+ await exec(cmd, {
8
+ env: process.env,
9
+ });
10
}
0 commit comments