Skip to content

Commit 793211e

Browse files
committed
Fixed issue that caused outDir not to be resolved correctly on windows
1 parent 828ef00 commit 793211e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Compiler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ function compile(fileNames: string[], options: ts.CompilerOptions): void {
6060

6161
let outPath = sourceFile.fileName;
6262
if (options.outDir !== options.rootDir) {
63-
outPath = path.join(options.outDir, sourceFile.fileName.replace(rootDir, ""));
63+
outPath = path.join(options.outDir, path.resolve(sourceFile.fileName).replace(rootDir, ""));
6464
}
6565

6666
// change extension

0 commit comments

Comments
 (0)