fix: use symLinkSync for TS compiler output

This commit is contained in:
Cédric Exbrayat 2016-04-08 21:07:36 +02:00 committed by Hans
parent e93e72f885
commit 4fe8687c63

View File

@ -78,7 +78,7 @@ class BroccoliTypeScriptCompiler extends Plugin {
this._fileRegistry[tsFilePath].outputs.forEach(absoluteFilePath => {
const outputFilePath = absoluteFilePath.replace(this.cachePath, this.outputPath);
fse.mkdirsSync(path.dirname(outputFilePath));
fs.linkSync(absoluteFilePath, outputFilePath);
fs.symlinkSync(absoluteFilePath, outputFilePath);
});
} else {
this._fileRegistry[tsFilePath].version = entry.mtime;
@ -202,7 +202,7 @@ class BroccoliTypeScriptCompiler extends Plugin {
fs.writeFileSync(absoluteFilePath, content, FS_OPTS);
fse.mkdirsSync(path.dirname(outputFilePath));
fs.linkSync(absoluteFilePath, outputFilePath);
fs.symlinkSync(absoluteFilePath, outputFilePath);
}
_addNewFileEntry(entry, checkDuplicates /* = true */) {
@ -314,7 +314,7 @@ class CustomLanguageServiceHost {
getCurrentDirectory() {
return this.currentDirectory;
}
getCompilationSettings() {
return this.compilerOptions;
}