Skip to content

Commit 3da8233

Browse files
gregmagolanAndrewKushnir
authored andcommitted
build(bazel): turn on --nolegacy-external-runfiles (angular#26770)
PR Close angular#26770
1 parent f8f1168 commit 3da8233

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

.bazelrc

+4
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ build --symlink_prefix=/
2424
# Performance: avoid stat'ing input files
2525
build --watchfs
2626

27+
# Turn off legacy external runfiles
28+
run --nolegacy_external_runfiles
29+
test --nolegacy_external_runfiles
30+
2731
###############################
2832
# Release support #
2933
###############################

packages/bazel/test/ngc-wrapped/tsconfig_template.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export function createTsConfig(options: TsConfigOptions) {
7070
'tsickleExternsPath': '',
7171
// we don't copy the node_modules into our tmp dir, so we should look in
7272
// the original workspace directory for it
73-
'nodeModulesPrefix': '../angular/external/ngdeps/node_modules',
73+
'nodeModulesPrefix': '../ngdeps/node_modules',
7474
},
7575
'files': options.files,
7676
'angularCompilerOptions': {

packages/compiler-cli/test/test_support.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ export function setupBazelTo(basePath: string) {
136136
}
137137

138138
// Link typescript
139-
const typescriptSource = path.join(sources, 'angular/external/ngdeps/node_modules/typescript');
139+
const typescriptSource = path.join(sources, 'ngdeps/node_modules/typescript');
140140
const typescriptDest = path.join(nodeModulesPath, 'typescript');
141141
if (fs.existsSync(typescriptSource)) {
142142
fs.symlinkSync(typescriptSource, typescriptDest);

0 commit comments

Comments
 (0)