Skip to content

Commit d2e0054

Browse files
committed
Handle relative rootDir correctly
1 parent 8ba5c3f commit d2e0054

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/compiler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ export class ProjectCompiler implements ICompiler {
8888
// We cannot use the `rootDir` option here, since that gives errors if the commonSourceDirectory points to a
8989
// directory containing the rootDir instead of the rootDir, which will break the build when using `noEmitOnError`.
9090
// The empty file is filtered out later on.
91-
let emptyFileName = path.join(this.project.options['rootDir'] || root, '________________empty.ts');
91+
let emptyFileName = path.join(this.project.options['rootDir'] ? path.resolve(this.project.projectDirectory, this.project.options['rootDir']) : root, '________________empty.ts');
9292
rootFilenames.push(emptyFileName);
9393
this.project.input.addContent(emptyFileName, '');
9494
}

0 commit comments

Comments
 (0)