build: update node type version (#25862)

PR Close #25862
This commit is contained in:
Pete Bacon Darwin
2018-09-10 11:44:48 +01:00
committed by Ben Lesh
parent f76a9ad156
commit 976389836e
8 changed files with 15 additions and 9 deletions

View File

@ -110,6 +110,9 @@ function createTestSupportFor(basePath: string) {
}
export function setupBazelTo(basePath: string) {
if (!process.env.TEST_SRCDIR) {
throw new Error('`setupBazelTo()` must only be called from in a Bazel job.');
}
const sources = process.env.TEST_SRCDIR;
const packages = path.join(sources, 'angular/packages');
const nodeModulesPath = path.join(basePath, 'node_modules');