Skip to content

Commit 4fe8687

Browse files
cexbrayathansl
authored andcommitted
fix: use symLinkSync for TS compiler output
1 parent e93e72f commit 4fe8687

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/broccoli/broccoli-typescript.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ class BroccoliTypeScriptCompiler extends Plugin {
7878
this._fileRegistry[tsFilePath].outputs.forEach(absoluteFilePath => {
7979
const outputFilePath = absoluteFilePath.replace(this.cachePath, this.outputPath);
8080
fse.mkdirsSync(path.dirname(outputFilePath));
81-
fs.linkSync(absoluteFilePath, outputFilePath);
81+
fs.symlinkSync(absoluteFilePath, outputFilePath);
8282
});
8383
} else {
8484
this._fileRegistry[tsFilePath].version = entry.mtime;
@@ -202,7 +202,7 @@ class BroccoliTypeScriptCompiler extends Plugin {
202202
fs.writeFileSync(absoluteFilePath, content, FS_OPTS);
203203

204204
fse.mkdirsSync(path.dirname(outputFilePath));
205-
fs.linkSync(absoluteFilePath, outputFilePath);
205+
fs.symlinkSync(absoluteFilePath, outputFilePath);
206206
}
207207

208208
_addNewFileEntry(entry, checkDuplicates /* = true */) {
@@ -314,7 +314,7 @@ class CustomLanguageServiceHost {
314314
getCurrentDirectory() {
315315
return this.currentDirectory;
316316
}
317-
317+
318318
getCompilationSettings() {
319319
return this.compilerOptions;
320320
}

0 commit comments

Comments
 (0)