Skip to content

Commit c27eab5

Browse files
committed
fix: use a temp dir within cwd for precompile
1 parent 3b1cd07 commit c27eab5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

ts/lib/commands/precompile.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import os from 'os';
21
import execa from 'execa';
32
import fs from 'fs-extra';
43
import path from 'path';
@@ -16,7 +15,7 @@ export default command({
1615
availableOptions: [{ name: 'manifest-path', type: String, default: PRECOMPILE_MANIFEST }],
1716

1817
async run(options: { manifestPath: string }) {
19-
let outDir = `${os.tmpdir()}/e-c-ts-precompile-${process.pid}`;
18+
let outDir = `${process.cwd()}/e-c-ts-precompile-${process.pid}`;
2019
let { paths, rootDir, pathRoots } = this._loadConfig(outDir);
2120
if (!paths) {
2221
this.ui.writeLine(

0 commit comments

Comments
 (0)