mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-26 01:01:13 +08:00
fix: use symLinkSync for TS compiler output
This commit is contained in:
parent
e93e72f885
commit
4fe8687c63
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user