Revert "build: upgrade to rules_nodejs 1.0.0 (first stable release) (#34589)" (#34730)

This reverts commit cb6ffa1211.

PR Close #34730
This commit is contained in:
atscott
2020-01-10 13:40:05 -08:00
parent 42d7039caa
commit c3490f7092
21 changed files with 79 additions and 78 deletions

View File

@ -26,7 +26,7 @@ ng_package(
"//packages/common/upgrade:package.json",
],
entry_point = ":index.ts",
nested_packages = ["//packages/common/locales:package"],
packages = ["//packages/common/locales:package"],
tags = [
"release-with-framework",
],

View File

@ -1,4 +1,4 @@
load("//tools:defaults.bzl", "pkg_npm", "ts_library")
load("//tools:defaults.bzl", "npm_package", "ts_library")
package(default_visibility = ["//visibility:public"])
@ -10,10 +10,11 @@ ts_library(
),
)
pkg_npm(
npm_package(
name = "package",
srcs = glob(["global/*.js"]) + ["package.json"],
substitutions = {
replacements = {
# Workaround for `.d.ts`` containing `/// <amd-module .../>`
# which are generated in TypeScript v2.9, but not before.
"/// <amd-module name=.*/>": "",