Skip to content

Commit 41063a4

Browse files
CC-Bell2heal1
andauthored
Fix spaces in path for TypeScript compilation (#4081)
Co-authored-by: Hanric <[email protected]>
1 parent 0b34514 commit 41063a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/dts-plugin/src/core/lib/typeScriptCompiler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ export const compileTs = async (
186186
: undefined,
187187
});
188188
const execPromise = util.promisify(exec);
189-
const cmd = `npx ${remoteOptions.compilerInstance} --project ${tempTsConfigJsonPath}`;
189+
const cmd = `npx ${remoteOptions.compilerInstance} --project '${tempTsConfigJsonPath}'`;
190190
try {
191191
await execPromise(cmd, {
192192
cwd:

0 commit comments

Comments
 (0)