mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-27 18:29:47 +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 => {
|
this._fileRegistry[tsFilePath].outputs.forEach(absoluteFilePath => {
|
||||||
const outputFilePath = absoluteFilePath.replace(this.cachePath, this.outputPath);
|
const outputFilePath = absoluteFilePath.replace(this.cachePath, this.outputPath);
|
||||||
fse.mkdirsSync(path.dirname(outputFilePath));
|
fse.mkdirsSync(path.dirname(outputFilePath));
|
||||||
fs.linkSync(absoluteFilePath, outputFilePath);
|
fs.symlinkSync(absoluteFilePath, outputFilePath);
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
this._fileRegistry[tsFilePath].version = entry.mtime;
|
this._fileRegistry[tsFilePath].version = entry.mtime;
|
||||||
@ -202,7 +202,7 @@ class BroccoliTypeScriptCompiler extends Plugin {
|
|||||||
fs.writeFileSync(absoluteFilePath, content, FS_OPTS);
|
fs.writeFileSync(absoluteFilePath, content, FS_OPTS);
|
||||||
|
|
||||||
fse.mkdirsSync(path.dirname(outputFilePath));
|
fse.mkdirsSync(path.dirname(outputFilePath));
|
||||||
fs.linkSync(absoluteFilePath, outputFilePath);
|
fs.symlinkSync(absoluteFilePath, outputFilePath);
|
||||||
}
|
}
|
||||||
|
|
||||||
_addNewFileEntry(entry, checkDuplicates /* = true */) {
|
_addNewFileEntry(entry, checkDuplicates /* = true */) {
|
||||||
@ -314,7 +314,7 @@ class CustomLanguageServiceHost {
|
|||||||
getCurrentDirectory() {
|
getCurrentDirectory() {
|
||||||
return this.currentDirectory;
|
return this.currentDirectory;
|
||||||
}
|
}
|
||||||
|
|
||||||
getCompilationSettings() {
|
getCompilationSettings() {
|
||||||
return this.compilerOptions;
|
return this.compilerOptions;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user