-
-
Notifications
You must be signed in to change notification settings - Fork 105
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: don't double copy 3rd party packages when linking with no lifecy…
…cle hook (#98)
- Loading branch information
1 parent
95868fc
commit 5b6bd3d
Showing
3 changed files
with
40 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
"js_package_internal rule" | ||
|
||
load("@bazel_skylib//lib:dicts.bzl", "dicts") | ||
load(":js_package.bzl", _js_package_lib = "js_package_lib") | ||
|
||
_INTERNAL_ATTRS = dicts.add(_js_package_lib.attrs, { | ||
"provide_source_directory": attr.bool( | ||
doc = """If true, source directories are provided and not copied to the output tree. | ||
For internal rules_js use only.""", | ||
), | ||
}) | ||
|
||
js_package_internal = rule( | ||
implementation = _js_package_lib.implementation, | ||
attrs = _INTERNAL_ATTRS, | ||
provides = _js_package_lib.provides, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters