Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jbedard opened this issue Oct 4, 2024 · 0 comments
Open

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

jbedard opened this issue Oct 4, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@jbedard
Copy link
Member

jbedard commented Oct 4, 2024

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 jbedard added the enhancement New feature or request label Oct 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant