-
-
Notifications
You must be signed in to change notification settings - Fork 66
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
[Bug]: ts_config()
deps trigger type checking
#739
Comments
I think the issue is your If you change the |
Narrowing the dependency definitely lessens the impact (I was being lazy and over-declaring the dependency), but it still seems wrong to me. I'm struggling to think of why a dependency in this context actually needs the types 🤔 |
For the validation action... maybe we don't need types? We essentially just need to be able to resolve Then we need types from So I think you're correct? |
Actually... I think this is related to |
Hrmm, I'm not sure I follow. We put project references in
I'm not sure I fully understand how the implementation of |
Yeah I agree that feels off and might still be a bug, but I think that bug only occurs when |
Sort of related, but this one fixes an issue with tsconfig deps propagating where they shouldn't (but doesn't solve this |
This is almost related in that it's a slightly more legitimate reason to have |
What happened?
I noticed that adding an in-repo dependency to
ts_config()
triggers type checking to run pre-maturely in dependencies as part of theTsValidateOptions
action. Are types/transitive types actually necessary for validation?More details and a repro here.
Version
Development (host) and target OS/architectures:
Output of
bazel --version
:aspect pro 5.11.0-alpha2.dev.41.gd94c177
Version of the Aspect rules, or other relevant rules from your
WORKSPACE
orMODULE.bazel
file:Language(s) and/or frameworks involved: TypeScript
How to reproduce
Any other information?
No response
The text was updated successfully, but these errors were encountered: