[FR]: npm_link_all_packages
should provide shorthands for "all non-devDependencies" and "all devDependencies"
#1879
Labels
enhancement
New feature or request
What is the current behavior?
npm_link_all_packages
provides you with a:node_modules
target that represents all dependencies in package.json.Describe the feature
There should also be some sort of automatically generated shorthand target for ":node_modules excluding dev deps" and "only dev deps". It's common to not want to micro-manage package dependencies in both package.json and BUILD.bazel, but still have targets to which dev deps are not accessible (most non-test targets), to avoid accidental inclusion of dev libraries in production code.
See https://bazelbuild.github.io/rules_rust/crate_universe.html#all_crate_deps for one potential API approach.
The text was updated successfully, but these errors were encountered: