Revert "build: upgrade angular build, integration/bazel and @angular/bazel package to rule_nodejs 2.2.0 (#37727)" (#39097)

This reverts commit db56cf18ba.

PR Close #39097
This commit is contained in:
Joey Perrott
2020-10-02 10:50:38 -07:00
parent 42f9679376
commit 86ab9f92b4
63 changed files with 536 additions and 833 deletions

View File

@ -188,15 +188,8 @@ class TestRunner {
if (binary.startsWith('external/')) {
binary = `../${binary.substring('external/'.length)}`;
}
try {
// Attempt to resolve runfiles location if command is expected to
// be in runfiles. For example, $(rootpath @nodejs//:yarn_bin)
const runfilesBinary = runfiles.resolveWorkspaceRelative(binary);
binary = (runfilesBinary && fs.existsSync(runfilesBinary)) ? runfilesBinary : binary;
} catch (e) {
// If resolveWorkspaceRelative then command is likely a built-in
// such as 'mkdir' or 'rm'
}
const runfilesBinary = runfiles.resolveWorkspaceRelative(binary);
binary = fs.existsSync(runfilesBinary) ? runfilesBinary : binary;
log(`running test command ${this.successful + 1} of ${this.config.commands.length}: '${
binary} ${args.join(' ')}' in '${this.testRoot}'`);
const spawnedProcess = spawnSync(binary, args, {cwd: this.testRoot, stdio: 'inherit'});