Skip to content

Commit 7df4109

Browse files
gregmagolanalexeagle
authored andcommitted
refactor(builtin): renamed npm_package to pkg_npm to match naming convention
It also frees up the name `npm_package` which may be useful in the future as a non-packaging representation of an npm package as an alternative to promoting js_library to the public API. BREAKING CHANGE: `npm_package` renamed to `pkg_npm`. This is to match the naming convention for package rules https://docs.bazel.build/versions/master/be/pkg.html.
1 parent e04b268 commit 7df4109

44 files changed

Lines changed: 260 additions & 96 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

BUILD.bazel

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
load("@bazel_skylib//:bzl_library.bzl", "bzl_library")
1616
load("@bazel_tools//tools/build_defs/pkg:pkg.bzl", "pkg_tar")
17-
load("@build_bazel_rules_nodejs//:index.bzl", "COMMON_REPLACEMENTS", "npm_package")
17+
load("@build_bazel_rules_nodejs//:index.bzl", "COMMON_REPLACEMENTS", "pkg_npm")
1818
load("//:tools/defaults.bzl", "codeowners")
1919

2020
package(default_visibility = ["//visibility:public"])
@@ -47,7 +47,7 @@ bzl_library(
4747
"//internal/common:bzl",
4848
"//internal/jasmine_node_test:bzl",
4949
"//internal/linker:bzl",
50-
"//internal/npm_package:bzl",
50+
"//internal/pkg_npm:bzl",
5151
"//internal/pkg_web:bzl",
5252
"//internal/providers:bzl",
5353
"//toolchains/node:bzl",
@@ -61,7 +61,7 @@ filegroup(
6161
srcs = [],
6262
)
6363

64-
npm_package(
64+
pkg_npm(
6565
name = "rules_nodejs_package",
6666
srcs = glob(["*.bzl"]) + [
6767
"BUILD.bazel",
@@ -70,7 +70,7 @@ npm_package(
7070
# Don't rename BUILD files as this package is not published to npm
7171
# but is compressed in "release" below and published as a .tar.gz to GitHub
7272
rename_build_files = False,
73-
# Don't replace the default 0.0.0-PLACEHOLDER for this npm_package since
73+
# Don't replace the default 0.0.0-PLACEHOLDER for this pkg_npm since
7474
# we are packaging up the packager itself and this replacement will break it
7575
replace_with_version = "",
7676
replacements = COMMON_REPLACEMENTS,
@@ -85,7 +85,7 @@ npm_package(
8585
"//internal/linker:package_contents",
8686
"//internal/node:package_contents",
8787
"//internal/npm_install:package_contents",
88-
"//internal/npm_package:package_contents",
88+
"//internal/pkg_npm:package_contents",
8989
"//internal/pkg_web:package_contents",
9090
"//internal/providers:package_contents",
9191
"//third_party/github.com/bazelbuild/bazel-skylib:package_contents",

WORKSPACE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ bazel_skylib_workspace()
189189

190190
local_repository(
191191
name = "internal_npm_package_test_vendored_external",
192-
path = "internal/npm_package/test/vendored_external",
192+
path = "internal/pkg_npm/test/vendored_external",
193193
)
194194

195195
yarn_install(

defs.bzl

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -21,25 +21,7 @@ ERROR: defs.bzl has been removed from build_bazel_rules_nodejs
2121
2222
Please update your load statements to use index.bzl instead.
2323
24-
If you depend on another ruleset that still depends on defs.bzl, you must update:
25-
26-
http_archive(
27-
name = "io_bazel_rules_sass",
28-
sha256 = "617e444f47a1f3e25eb1b6f8e88a2451d54a2afdc7c50518861d9f706fc8baaa",
29-
urls = [
30-
"https://github.com/bazelbuild/rules_sass/archive/1.23.7.zip",
31-
"https://mirror.bazel.build/github.com/bazelbuild/rules_sass/archive/1.23.7.zip",
32-
],
33-
strip_prefix = "rules_sass-1.23.7",
34-
)
35-
36-
http_archive(
37-
name = "io_bazel_rules_docker",
38-
sha256 = "c9b298ec18157fc8ada915bb958dfd1c3d98ec247b5aca29efb1d222b5f9e7df",
39-
# TODO: update to next release after 17 December 2019 that includes this commit
40-
strip_prefix = "rules_docker-8c28cb910f1b93d0fa3289a11ec62ef1710172d5",
41-
urls = ["https://github.com/bazelbuild/rules_docker/archive/8c28cb910f1b93d0fa3289a11ec62ef1710172d5.zip"],
42-
)
24+
See https://github.com/bazelbuild/rules_nodejs/wiki#migrating-off-build_bazel_rules_nodejsdefsbzl for help.
4325
""")
4426

4527
check_bazel_version = _error
@@ -48,6 +30,7 @@ nodejs_test = _error
4830
node_repositories = _error
4931
jasmine_node_test = _error
5032
npm_package = _error
33+
pkg_npm = _error
5134
npm_package_bin = _error
5235
# ANY RULES ADDED HERE SHOULD BE DOCUMENTED, see index.for_docs.bzl
5336

docs/Built-ins.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -756,16 +756,16 @@ Defaults to `True`
756756
Defaults to `3600`
757757

758758

759-
## npm_package
759+
## pkg_npm
760760

761-
The npm_package rule creates a directory containing a publishable npm artifact.
761+
The pkg_npm rule creates a directory containing a publishable npm artifact.
762762

763763
Example:
764764

765765
```python
766-
load("@build_bazel_rules_nodejs//:index.bzl", "npm_package")
766+
load("@build_bazel_rules_nodejs//:index.bzl", "pkg_npm")
767767

768-
npm_package(
768+
pkg_npm(
769769
name = "my_package",
770770
srcs = ["package.json"],
771771
deps = [":my_typescript_lib"],
@@ -787,7 +787,7 @@ function doThing() {
787787

788788
Usage:
789789

790-
`npm_package` yields three labels. Build the package directory using the default label:
790+
`pkg_npm` yields three labels. Build the package directory using the default label:
791791

792792
```sh
793793
$ bazel build :my_package
@@ -821,7 +821,7 @@ You can pass arguments to npm by escaping them from Bazel using a double-hyphen
821821
### Usage
822822

823823
```
824-
npm_package(name, deps, node_context_data, packages, rename_build_files, replace_with_version, replacements, srcs, vendor_external)
824+
pkg_npm(name, deps, node_context_data, packages, rename_build_files, replace_with_version, replacements, srcs, vendor_external)
825825
```
826826

827827

@@ -840,7 +840,7 @@ Defaults to `[]`
840840
Defaults to `@build_bazel_rules_nodejs//internal:node_context_data`
841841

842842
#### `packages`
843-
(*[labels]*): Other npm_package rules whose content is copied into this package.
843+
(*[labels]*): Other pkg_npm rules whose content is copied into this package.
844844

845845
Defaults to `[]`
846846

docs/index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -174,11 +174,11 @@ readonly BAZEL_BIN=./node_modules/.bin/bazel
174174
readonly TMP=$(mktemp -d -t bazel-release.XXXXXXX)
175175
readonly BAZEL="$BAZEL_BIN --output_base=$TMP"
176176
# Find all the npm packages in the repo
177-
readonly NPM_PACKAGE_LABELS=`$BAZEL query --output=label 'kind("npm_package", //...)'`
177+
readonly PKG_NPM_LABELS=`$BAZEL query --output=label 'kind("pkg_npm", //...)'`
178178
# Build them in one command to maximize parallelism
179-
$BAZEL build --config=release $NPM_PACKAGE_LABELS
179+
$BAZEL build --config=release $PKG_NPM_LABELS
180180
# publish one package at a time to make it easier to spot any errors or warnings
181-
for pkg in $NPM_PACKAGE_LABELS ; do
181+
for pkg in $PKG_NPM_LABELS ; do
182182
$BAZEL run -- ${pkg}.${NPM_COMMAND} --access public --tag latest
183183
done
184184
```

examples/angular/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353
"karma-jasmine": "2.0.1",
5454
"karma-requirejs": "1.1.0",
5555
"karma-sourcemap-loader": "0.3.7",
56+
"patch-package": "^6.2.0",
5657
"protractor": "^5.4.2",
5758
"requirejs": "2.3.6",
5859
"rollup": "^1.21.4",
@@ -69,7 +70,7 @@
6970
"e2e": "bazel test //e2e:all",
7071
"test": "bazel test //src/...",
7172
"benchmark": "ibazel-benchmark-runner //src:devserver src/app/hello-world/hello-world.component.ts --url=http://localhost:5432",
72-
"postinstall": "ngcc",
73+
"postinstall": "patch-package && ngcc",
7374
"generate": "node tools/generator/index.js",
7475
"generate:clean": "node tools/generator/index.js --clean"
7576
}
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
diff --git a/node_modules/@angular/bazel/src/ng_package/ng_package.bzl b/node_modules/@angular/bazel/src/ng_package/ng_package.bzl
2+
index ccda5a5..00f1624 100755
3+
--- a/node_modules/@angular/bazel/src/ng_package/ng_package.bzl
4+
+++ b/node_modules/@angular/bazel/src/ng_package/ng_package.bzl
5+
@@ -15,9 +15,9 @@ specification of this format at https://goo.gl/jB3GVv
6+
7+
load("@build_bazel_rules_nodejs//:providers.bzl", "JSEcmaScriptModuleInfo", "JSNamedModuleInfo", "NpmPackageInfo", "node_modules_aspect")
8+
load(
9+
- "@build_bazel_rules_nodejs//internal/npm_package:npm_package.bzl",
10+
- "NPM_PACKAGE_ATTRS",
11+
- "NPM_PACKAGE_OUTPUTS",
12+
+ "@build_bazel_rules_nodejs//internal/pkg_npm:pkg_npm.bzl",
13+
+ "PKG_NPM_ATTRS",
14+
+ "PKG_NPM_OUTPUTS",
15+
"create_package",
16+
)
17+
load("//src:external.bzl", "FLAT_DTS_FILE_SUFFIX")
18+
@@ -619,7 +619,7 @@ def _ng_package_impl(ctx):
19+
if JSNamedModuleInfo in dep:
20+
devfiles = depset(transitive = [devfiles, dep[JSNamedModuleInfo].sources])
21+
22+
- # Re-use the create_package function from the nodejs npm_package rule.
23+
+ # Re-use the create_package function from the nodejs pkg_npm rule.
24+
package_dir = create_package(
25+
ctx,
26+
devfiles.to_list(),
27+
@@ -631,7 +631,7 @@ def _ng_package_impl(ctx):
28+
29+
_NG_PACKAGE_DEPS_ASPECTS = [esm5_outputs_aspect, ng_package_module_mappings_aspect, node_modules_aspect]
30+
31+
-_NG_PACKAGE_ATTRS = dict(NPM_PACKAGE_ATTRS, **{
32+
+_NG_PACKAGE_ATTRS = dict(PKG_NPM_ATTRS, **{
33+
"srcs": attr.label_list(
34+
doc = """JavaScript source files from the workspace.
35+
These can use ES2015 syntax and ES Modules (import/export)""",
36+
@@ -807,12 +807,12 @@ def _ng_package_outputs(name, entry_point, entry_point_name):
37+
"umd": "%s.umd.js" % basename,
38+
"umd_min": "%s.umd.min.js" % basename,
39+
}
40+
- for key in NPM_PACKAGE_OUTPUTS:
41+
- # NPM_PACKAGE_OUTPUTS is a "normal" dict-valued outputs so it looks like
42+
+ for key in PKG_NPM_OUTPUTS:
43+
+ # PKG_NPM_OUTPUTS is a "normal" dict-valued outputs so it looks like
44+
# "pack": "%{name}.pack",
45+
# But this is a function-valued outputs.
46+
# Bazel won't replace the %{name} token so we have to do it.
47+
- outputs[key] = NPM_PACKAGE_OUTPUTS[key].replace("%{name}", name)
48+
+ outputs[key] = PKG_NPM_OUTPUTS[key].replace("%{name}", name)
49+
return outputs
50+
51+
ng_package = rule(

examples/angular/yarn.lock

Lines changed: 56 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1079,7 +1079,7 @@
10791079
resolved "https://registry.yarnpkg.com/@types/selenium-webdriver/-/selenium-webdriver-3.0.16.tgz#50a4755f8e33edacd9c406729e9b930d2451902a"
10801080
integrity sha512-lMC2G0ItF2xv4UCiwbJGbnJlIuUixHrioOhNGHSCsYCJ8l4t9hMCUimCytvFv7qy6AfSzRxhRHoGa+UqaqwyeA==
10811081

1082-
"@yarnpkg/lockfile@1.1.0":
1082+
"@yarnpkg/lockfile@1.1.0", "@yarnpkg/lockfile@^1.1.0":
10831083
version "1.1.0"
10841084
resolved "https://registry.yarnpkg.com/@yarnpkg/lockfile/-/lockfile-1.1.0.tgz#e77a97fbd345b76d83245edcd17d393b1b41fb31"
10851085
integrity sha512-GpSwvyXOcOOlV70vbnzjj4fW5xW/FdUF6nQEt1ENy7m4ZCczi1+/buVUPAqmGfqznsORNFzUMjctTIp8a9tuCQ==
@@ -1820,6 +1820,11 @@ ci-info@^1.5.0:
18201820
resolved "https://registry.yarnpkg.com/ci-info/-/ci-info-1.6.0.tgz#2ca20dbb9ceb32d4524a683303313f0304b1e497"
18211821
integrity sha512-vsGdkwSCDpWmP80ncATX7iea5DWQemg1UgCW5J8tqjU3lYw4FBYuj89J0CTVomA7BEfvSZd84GmHko+MxFQU2A==
18221822

1823+
ci-info@^2.0.0:
1824+
version "2.0.0"
1825+
resolved "https://registry.yarnpkg.com/ci-info/-/ci-info-2.0.0.tgz#67a9e964be31a51e15e5010d58e6f12834002f46"
1826+
integrity sha512-5tK7EtrZ0N+OLFMthtqOj4fI2Jeb88C4CAZPu25LDVUgXJ0A3Js4PMGqrn0JU1W0Mh1/Z8wZzYPxqUrXeBboCQ==
1827+
18231828
cjson@^0.3.1:
18241829
version "0.3.3"
18251830
resolved "https://registry.yarnpkg.com/cjson/-/cjson-0.3.3.tgz#a92d9c786e5bf9b930806329ee05d5d3261b4afa"
@@ -2941,6 +2946,14 @@ find-up@^3.0.0:
29412946
dependencies:
29422947
locate-path "^3.0.0"
29432948

2949+
find-yarn-workspace-root@^1.2.1:
2950+
version "1.2.1"
2951+
resolved "https://registry.yarnpkg.com/find-yarn-workspace-root/-/find-yarn-workspace-root-1.2.1.tgz#40eb8e6e7c2502ddfaa2577c176f221422f860db"
2952+
integrity sha512-dVtfb0WuQG+8Ag2uWkbG79hOUzEsRrhBzgfn86g2sJPkzmcpGdghbNTfUKGTxymFrY/tLIodDzLoW9nOJ4FY8Q==
2953+
dependencies:
2954+
fs-extra "^4.0.3"
2955+
micromatch "^3.1.4"
2956+
29442957
firebase-tools@7.1.0:
29452958
version "7.1.0"
29462959
resolved "https://registry.yarnpkg.com/firebase-tools/-/firebase-tools-7.1.0.tgz#dcde117e70d021d163616e8bcd02abead5d5c1e1"
@@ -3091,6 +3104,15 @@ fs-extra@^0.30.0:
30913104
path-is-absolute "^1.0.0"
30923105
rimraf "^2.2.8"
30933106

3107+
fs-extra@^4.0.3:
3108+
version "4.0.3"
3109+
resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-4.0.3.tgz#0d852122e5bc5beb453fb028e9c0c9bf36340c94"
3110+
integrity sha512-q6rbdDd1o2mAnQreO7YADIxf/Whx4AHBiRf6d+/cVT8h44ss+lHgxf1FemcqDnQt9X3ct4McHr+JMGlYSsK7Cg==
3111+
dependencies:
3112+
graceful-fs "^4.1.2"
3113+
jsonfile "^4.0.0"
3114+
universalify "^0.1.0"
3115+
30943116
fs-extra@^7.0.1, fs-extra@~7.0.1:
30953117
version "7.0.1"
30963118
resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-7.0.1.tgz#4f189c44aa123b895f722804f55ea23eadc348e9"
@@ -3703,6 +3725,13 @@ is-ci@^1.0.10:
37033725
dependencies:
37043726
ci-info "^1.5.0"
37053727

3728+
is-ci@^2.0.0:
3729+
version "2.0.0"
3730+
resolved "https://registry.yarnpkg.com/is-ci/-/is-ci-2.0.0.tgz#6bc6334181810e04b5c22b3d589fdca55026404c"
3731+
integrity sha512-YfJT7rkpQB0updsdHLGWrvhBJfcfzNNawYDNIyQXJz0IViGf75O8EBPKSdvw2rF+LGCsX4FZ8tcr3b19LcZq4w==
3732+
dependencies:
3733+
ci-info "^2.0.0"
3734+
37063735
is-data-descriptor@^0.1.4:
37073736
version "0.1.4"
37083737
resolved "https://registry.yarnpkg.com/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz#0b5ee648388e2c860282e793f1856fec3f301b56"
@@ -4217,6 +4246,13 @@ kind-of@^6.0.0, kind-of@^6.0.2:
42174246
resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-6.0.2.tgz#01146b36a6218e64e58f3a8d66de5d7fc6f6d051"
42184247
integrity sha512-s5kLOcnH0XqDO+FvuaLX8DDjZ18CGFk7VygH40QoKPUQhW4e2rvM0rwUq0t8IQDOwYSeLK01U90OjzBTme2QqA==
42194248

4249+
klaw-sync@^6.0.0:
4250+
version "6.0.0"
4251+
resolved "https://registry.yarnpkg.com/klaw-sync/-/klaw-sync-6.0.0.tgz#1fd2cfd56ebb6250181114f0a581167099c2b28c"
4252+
integrity sha512-nIeuVSzdCCs6TDPTqI8w1Yre34sSq7AkZ4B3sfOBbI2CgVSB4Du4aLQijFU2+lhAFCwt9+42Hel6lQNIv6AntQ==
4253+
dependencies:
4254+
graceful-fs "^4.1.11"
4255+
42204256
klaw@^1.0.0:
42214257
version "1.3.1"
42224258
resolved "https://registry.yarnpkg.com/klaw/-/klaw-1.3.1.tgz#4088433b46b3b1ba259d78785d8e96f73ba02439"
@@ -5252,6 +5288,25 @@ pascalcase@^0.1.1:
52525288
resolved "https://registry.yarnpkg.com/pascalcase/-/pascalcase-0.1.1.tgz#b363e55e8006ca6fe21784d2db22bd15d7917f14"
52535289
integrity sha1-s2PlXoAGym/iF4TS2yK9FdeRfxQ=
52545290

5291+
patch-package@^6.2.0:
5292+
version "6.2.0"
5293+
resolved "https://registry.yarnpkg.com/patch-package/-/patch-package-6.2.0.tgz#677de858e352b6ca4e6cb48a6efde2cec9fde566"
5294+
integrity sha512-HWlQflaBBMjLBfOWomfolF8aqsFDeNbSNro1JDUgYqnVvPM5OILJ9DQdwIRiKmGaOsmHvhkl1FYkvv1I9r2ZJw==
5295+
dependencies:
5296+
"@yarnpkg/lockfile" "^1.1.0"
5297+
chalk "^2.4.2"
5298+
cross-spawn "^6.0.5"
5299+
find-yarn-workspace-root "^1.2.1"
5300+
fs-extra "^7.0.1"
5301+
is-ci "^2.0.0"
5302+
klaw-sync "^6.0.0"
5303+
minimist "^1.2.0"
5304+
rimraf "^2.6.3"
5305+
semver "^5.6.0"
5306+
slash "^2.0.0"
5307+
tmp "^0.0.33"
5308+
update-notifier "^2.5.0"
5309+
52555310
path-dirname@^1.0.0:
52565311
version "1.0.2"
52575312
resolved "https://registry.yarnpkg.com/path-dirname/-/path-dirname-1.0.2.tgz#cc33d24d525e099a5388c0336c6e32b9160609e0"
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
diff --git a/node_modules/@angular/bazel/src/ng_package/ng_package.bzl b/node_modules/@angular/bazel/src/ng_package/ng_package.bzl
2+
index ccda5a5..00f1624 100755
3+
--- a/node_modules/@angular/bazel/src/ng_package/ng_package.bzl
4+
+++ b/node_modules/@angular/bazel/src/ng_package/ng_package.bzl
5+
@@ -15,9 +15,9 @@ specification of this format at https://goo.gl/jB3GVv
6+
7+
load("@build_bazel_rules_nodejs//:providers.bzl", "JSEcmaScriptModuleInfo", "JSNamedModuleInfo", "NpmPackageInfo", "node_modules_aspect")
8+
load(
9+
- "@build_bazel_rules_nodejs//internal/npm_package:npm_package.bzl",
10+
- "NPM_PACKAGE_ATTRS",
11+
- "NPM_PACKAGE_OUTPUTS",
12+
+ "@build_bazel_rules_nodejs//internal/pkg_npm:pkg_npm.bzl",
13+
+ "PKG_NPM_ATTRS",
14+
+ "PKG_NPM_OUTPUTS",
15+
"create_package",
16+
)
17+
load("//src:external.bzl", "FLAT_DTS_FILE_SUFFIX")
18+
@@ -619,7 +619,7 @@ def _ng_package_impl(ctx):
19+
if JSNamedModuleInfo in dep:
20+
devfiles = depset(transitive = [devfiles, dep[JSNamedModuleInfo].sources])
21+
22+
- # Re-use the create_package function from the nodejs npm_package rule.
23+
+ # Re-use the create_package function from the nodejs pkg_npm rule.
24+
package_dir = create_package(
25+
ctx,
26+
devfiles.to_list(),
27+
@@ -631,7 +631,7 @@ def _ng_package_impl(ctx):
28+
29+
_NG_PACKAGE_DEPS_ASPECTS = [esm5_outputs_aspect, ng_package_module_mappings_aspect, node_modules_aspect]
30+
31+
-_NG_PACKAGE_ATTRS = dict(NPM_PACKAGE_ATTRS, **{
32+
+_NG_PACKAGE_ATTRS = dict(PKG_NPM_ATTRS, **{
33+
"srcs": attr.label_list(
34+
doc = """JavaScript source files from the workspace.
35+
These can use ES2015 syntax and ES Modules (import/export)""",
36+
@@ -807,12 +807,12 @@ def _ng_package_outputs(name, entry_point, entry_point_name):
37+
"umd": "%s.umd.js" % basename,
38+
"umd_min": "%s.umd.min.js" % basename,
39+
}
40+
- for key in NPM_PACKAGE_OUTPUTS:
41+
- # NPM_PACKAGE_OUTPUTS is a "normal" dict-valued outputs so it looks like
42+
+ for key in PKG_NPM_OUTPUTS:
43+
+ # PKG_NPM_OUTPUTS is a "normal" dict-valued outputs so it looks like
44+
# "pack": "%{name}.pack",
45+
# But this is a function-valued outputs.
46+
# Bazel won't replace the %{name} token so we have to do it.
47+
- outputs[key] = NPM_PACKAGE_OUTPUTS[key].replace("%{name}", name)
48+
+ outputs[key] = PKG_NPM_OUTPUTS[key].replace("%{name}", name)
49+
return outputs
50+
51+
ng_package = rule(

index.bzl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,15 @@ load(
2929
load("//internal/node:node_repositories.bzl", _node_repositories = "node_repositories")
3030
load("//internal/node:npm_package_bin.bzl", _npm_bin = "npm_package_bin")
3131
load("//internal/npm_install:npm_install.bzl", _npm_install = "npm_install", _yarn_install = "yarn_install")
32-
load("//internal/npm_package:npm_package.bzl", _npm_package = "npm_package")
32+
load("//internal/pkg_npm:pkg_npm.bzl", _pkg_npm = "pkg_npm")
3333
load("//internal/pkg_web:pkg_web.bzl", _pkg_web = "pkg_web")
3434

3535
check_bazel_version = _check_bazel_version
3636
nodejs_binary = _nodejs_binary
3737
nodejs_test = _nodejs_test
3838
node_repositories = _node_repositories
3939
jasmine_node_test = _jasmine_node_test
40-
npm_package = _npm_package
40+
pkg_npm = _pkg_npm
4141
npm_package_bin = _npm_bin
4242
pkg_web = _pkg_web
4343
copy_to_bin = _copy_to_bin

0 commit comments

Comments
 (0)