-
-
Notifications
You must be signed in to change notification settings - Fork 117
feat: remove the ability to customize node_modules path #2202
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
8abf4c3
to
cf54f5a
Compare
5102c89
to
935d9c2
Compare
""" {bin_name} = lambda name, **kwargs: _{bin_name}_internal(name, link_root_name = link_root_name, **kwargs), | ||
{bin_name}_test = lambda name, **kwargs: _{bin_name}_test_internal(name, link_root_name = link_root_name, **kwargs), | ||
{bin_name}_binary = lambda name, **kwargs: _{bin_name}_binary_internal(name, link_root_name = link_root_name, **kwargs), | ||
""" {bin_name} = {bin_name}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe leave a TODO to cleanup eihter this or the macros above? Seems weird to have both APIs (my vote is to remove this struct)
@@ -48,19 +48,19 @@ _ATTRS = { | |||
For example, | |||
|
|||
``` | |||
//:.aspect_rules_js/node_modules/cliui/7.0.4 | |||
//:.aspect_rules_js/cliui/7.0.4 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is to align with pnpm naming right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i love this
@@ -217,7 +216,7 @@ def npm_link_targets(name = "node_modules", package = None): | |||
npm_link_all_packages_bzl = [ | |||
"""\ | |||
# buildifier: disable=function-docstring | |||
def npm_link_all_packages(name = "node_modules", imported_links = []): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess one question would be... should we keep the name
param for consistency across rules but throw if it is not the default? Does that help IDEs or anything like that? 🤷
935d9c2
to
2be2231
Compare
2be2231
to
f0c9856
Compare
Fix #2196
Changes are visible to end-users: yes/no
Test plan