-
-
Notifications
You must be signed in to change notification settings - Fork 65
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]: isolated_typecheck
& project references
#757
Comments
This is because the primary purpose of This makes me think that those extra deps should not be automatically added like they are today. IMO if a tsconfig file has settings that require dependencies then It seems like using |
Yeah I think it's much more legible for tsconfig file dependencies ( In this scenario it was jarring/confusing that changing |
FWIW this should fix a lot of the confusion in the next major release: #762 |
FWIW I think |
I might be doing something dumb, but when I add
|
What happened?
I'm having a hard time getting the new
isolated_typecheck
to play nicely with TypeScript's project references.A naive setup (repro here) without explicit
ts_config()
targets fails during.d.ts
transpilation because it can't find thetsconfig.json
files of dependency projects:Adding explicit
ts_config()
targets withdeps
on in-repo dependencies (repro on this branch here) seems to fix the issue, but I can't getbazel configure
to auto-generate the dependencies without failing like this:I guess that's probably a separate issue for https://github.com/aspect-build/aspect-cli.
It's unintuitive that setting
isolated_typecheck = True
triggers the need for explicitts_config()
targets, almost as an accident (I think) of usingtsc
to do the.d.ts
transpilation.Version
Development (host) and target OS/architectures:
Output of
bazel --version
:aspect 2024.51.11+60ad64d6e
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: