fix(zone.js): update build tooling for latest changes in rules_nodejs (#40710)

Update the zone.js build tooling to handle the changes in the latest version of rules_nodejs.

PR Close #40710
This commit is contained in:
Joey Perrott 2021-02-04 14:11:53 -08:00 committed by Alex Rickabaugh
parent b8b8535f40
commit 28278450a4
2 changed files with 3 additions and 3 deletions

View File

@ -3,9 +3,9 @@ const commonjs = require('rollup-plugin-commonjs');
// Parse the stamp file produced by Bazel from the version control system
let version = '<unknown>';
if (bazel_stamp_file) {
if (bazel_version_file) {
const versionTag = require('fs')
.readFileSync(bazel_stamp_file, {encoding: 'utf-8'})
.readFileSync(bazel_version_file, {encoding: 'utf-8'})
.split('\n')
.find(s => s.startsWith('BUILD_SCM_VERSION'));
// Don't assume BUILD_SCM_VERSION exists

View File

@ -1,5 +1,5 @@
load("//tools:defaults.bzl", "rollup_bundle", "ts_library")
load("@npm//@bazel/karma:index.bzl", "karma_web_test_suite")
load("@npm//@bazel/concatjs:index.bzl", "karma_web_test_suite")
def karma_test_prepare(name, env_srcs, env_deps, env_entry_point, test_srcs, test_deps, test_entry_point):
ts_library(