-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Co-authored-by: Tiago Costa <tiagoffcc@hotmail.com>
- Loading branch information
1 parent
3208ffd
commit 416182a
Showing
2 changed files
with
18 additions
and
0 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,16 @@ | ||
"Simple wrapper over the general pkg_npm rule from rules_nodejs so we can override some configs" | ||
|
||
load("@build_bazel_rules_nodejs//internal/pkg_npm:pkg_npm.bzl", _pkg_npm = "pkg_npm_macro") | ||
|
||
def pkg_npm(validate = False, **kwargs): | ||
"""A macro around the upstream pkg_npm rule. | ||
Args: | ||
validate: boolean; Whether to check that the attributes match the package.json. Defaults to false | ||
**kwargs: the rest | ||
""" | ||
|
||
_pkg_npm( | ||
validate = validate, | ||
**kwargs | ||
) |