rules_js icon indicating copy to clipboard operation
rules_js copied to clipboard

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

Open jbedard opened this issue 1 year ago • 1 comments

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 @types packages
  • dev vs non-dev dependencies based on package.json
  • custom attributes such as js_library(dev_deps)

jbedard avatar Oct 04 '24 22:10 jbedard

~~FWIW I think https://github.com/aspect-build/rules_js/issues/2013 should solve this.~~

jbedard avatar Jan 07 '25 00:01 jbedard