build: update to nodejs rules 0.37.1 (#32151)
This release includes a ts_config runfiles fix so also cleaning up the one line work-around from #31943. This also updates to upstream rules_webtesting browser repositories load("@io_bazel_rules_webtesting//web/versioned:browsers-0.3.2.bzl", "browser_repositories") to fix a breaking change in the chromedriver distro. This bumps up the version of chromium to the version here: https://github.com/bazelbuild/rules_webtesting/blob/master/web/versioned/browsers-0.3.2.bzl PR Close #32151
This commit is contained in:

committed by
Andrew Kushnir

parent
c8be987b40
commit
c1346462db
@ -29,8 +29,11 @@ function nodejs_repository() {
|
||||
}
|
||||
}
|
||||
|
||||
const ngcBin = require.resolve('./ngc_bin');
|
||||
const xi18nBin = require.resolve('./ng_xi18n');
|
||||
// Since rules nodejs 0.37.1, the nodejs_binary executable now has a different extension depending
|
||||
// on platform
|
||||
const nodejsBinaryExt = os.platform() === 'win32' ? '.bat' : '.sh';
|
||||
const ngcBin = require.resolve(`./ngc_bin${nodejsBinaryExt}`);
|
||||
const xi18nBin = require.resolve(`./ng_xi18n${nodejsBinaryExt}`);
|
||||
const nodeBin =
|
||||
require.resolve(`${nodejs_repository()}/bin/node${(os.platform() === 'win32' ? '.cmd' : '')}`);
|
||||
const jasmineBin = require.resolve('npm/node_modules/jasmine/bin/jasmine.js');
|
||||
|
Reference in New Issue
Block a user