aspect-build / rules_js

High-performance Bazel rules for running Node.js tools and building JavaScript projects
https://docs.aspect.build/rules/aspect_rules_js
Apache License 2.0
310 stars 107 forks source link

[FR]: do not propagate type-check/compile-time only dependencies #1934

Open jbedard opened 1 month ago

jbedard commented 1 month ago

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: