Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Add a node_scope option to node_module targets to support package-scopes #6616
This is the implementation of #6540.
Pants source-level dependencies for Node.js targets does not support node-scopes.
The repo-owner may specify a target-level and/or global node-scope that will resolve all Node.js source-level dependencies under the correct node-scope rules.
For example, if you have a target dependency on src/node/pants/custom/web-package:web-package with a package name of
If a node_scope=pants is defined for
Defining scope in package.json
When dep inference is ready, a potential update to this implementation is to be able to infer the node_scope from the name defined in package.json.