aspect-build / aspect-build/rules_js

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

Open
#1,934 1 comment 0 reactions 1 assignee Claimed by @jbedard View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.