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
|
# Performance: avoid stat'ing input files
|
||||||
build --watchfs
|
build --watchfs
|
||||||
|
|
||||||
|
# Turn off legacy external runfiles
|
||||||
|
run --nolegacy_external_runfiles
|
||||||
|
test --nolegacy_external_runfiles
|
||||||
|
|
||||||
###############################
|
###############################
|
||||||
# Release support #
|
# Release support #
|
||||||
###############################
|
###############################
|
||||||
|
|
|
@ -70,7 +70,7 @@ export function createTsConfig(options: TsConfigOptions) {
|
||||||
'tsickleExternsPath': '',
|
'tsickleExternsPath': '',
|
||||||
// we don't copy the node_modules into our tmp dir, so we should look in
|
// we don't copy the node_modules into our tmp dir, so we should look in
|
||||||
// the original workspace directory for it
|
// the original workspace directory for it
|
||||||
'nodeModulesPrefix': '../angular/external/ngdeps/node_modules',
|
'nodeModulesPrefix': '../ngdeps/node_modules',
|
||||||
},
|
},
|
||||||
'files': options.files,
|
'files': options.files,
|
||||||
'angularCompilerOptions': {
|
'angularCompilerOptions': {
|
||||||
|
|
|
@ -136,7 +136,7 @@ export function setupBazelTo(basePath: string) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Link typescript
|
// 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');
|
const typescriptDest = path.join(nodeModulesPath, 'typescript');
|
||||||
if (fs.existsSync(typescriptSource)) {
|
if (fs.existsSync(typescriptSource)) {
|
||||||
fs.symlinkSync(typescriptSource, typescriptDest);
|
fs.symlinkSync(typescriptSource, typescriptDest);
|
||||||
|
|
Loading…
Reference in New Issue