build(bazel): turn on --nolegacy-external-runfiles (#26770)

PR Close #26770
This commit is contained in:
Greg Magolan 2018-10-25 17:02:50 -07:00 committed by Andrew Kushnir
parent f8f1168fa6
commit 3da82338d1
3 changed files with 6 additions and 2 deletions

View File

@ -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 #
###############################

View File

@ -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': {

View File

@ -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);