rules_js
rules_js copied to clipboard
[FR]: do not propagate type-check/compile-time only dependencies
What is the current behavior?
Things like @types are only required at type-check time but are passed through all the way into the runfiles.
Describe the feature
Prevent type-check/compile-time only dependencies from propagating through transitive dependencies.
Ideas:
- specifically flag
@typespackages - dev vs non-dev dependencies based on package.json
- custom attributes such as
js_library(dev_deps)
~~FWIW I think https://github.com/aspect-build/rules_js/issues/2013 should solve this.~~