aspect-build / aspect-build/rules_js
[FR]: do not propagate type-check/compile-time only dependencies
Open
enhancement
- Dominant language
- Starlark
- Stars
- 378
- Forks
- 183
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 32
Description
### 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)`
Contributor guide
Assessment
This issue has not been assessed yet.