build(bazel): turn on --nolegacy-external-runfiles (#26770)
PR Close #26770
This commit is contained in:
parent
f8f1168fa6
commit
3da82338d1
4
.bazelrc
4
.bazelrc
|
@ -24,6 +24,10 @@ build --symlink_prefix=/
|
|||
# Performance: avoid stat'ing input files
|
||||
build --watchfs
|
||||
|
||||
# Turn off legacy external runfiles
|
||||
run --nolegacy_external_runfiles
|
||||
test --nolegacy_external_runfiles
|
||||
|
||||
###############################
|
||||
# Release support #
|
||||
###############################
|
||||
|
|
|
@ -70,7 +70,7 @@ export function createTsConfig(options: TsConfigOptions) {
|
|||
'tsickleExternsPath': '',
|
||||
// we don't copy the node_modules into our tmp dir, so we should look in
|
||||
// the original workspace directory for it
|
||||
'nodeModulesPrefix': '../angular/external/ngdeps/node_modules',
|
||||
'nodeModulesPrefix': '../ngdeps/node_modules',
|
||||
},
|
||||
'files': options.files,
|
||||
'angularCompilerOptions': {
|
||||
|
|
|
@ -136,7 +136,7 @@ export function setupBazelTo(basePath: string) {
|
|||
}
|
||||
|
||||
// Link typescript
|
||||
const typescriptSource = path.join(sources, 'angular/external/ngdeps/node_modules/typescript');
|
||||
const typescriptSource = path.join(sources, 'ngdeps/node_modules/typescript');
|
||||
const typescriptDest = path.join(nodeModulesPath, 'typescript');
|
||||
if (fs.existsSync(typescriptSource)) {
|
||||
fs.symlinkSync(typescriptSource, typescriptDest);
|
||||
|
|
Loading…
Reference in New Issue