-
-
Notifications
You must be signed in to change notification settings - Fork 64
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]: Superfluous @ts_project_typecheck_test target being generated with v3.2.0 #719
Comments
Is this actually causing any issues? Or just seems like extra spam? I've been debating declaring these targets 100% of the time, just like the |
I think this is more likely to be extra spam – we only encountered the test failure when building on Windows or under QEMU. The approach in #721 looks most sensible to me (in terms of not having redundant targets being defined, we always use the default transpiler) but I also get that there's value in defining targets whether a custom transpiler is being used or not. |
FWIW, we (Figma) support this. We use a mix of swc and tsc, and the inconsistency of what targets |
We are in the same boat. |
What happened?
When upgrading from rules_ts v3.1.0 => 3.2.0 or higher, a new
@ts_project_typecheck_test
test target is unexpectedly being generated for somets_project
-based targets. I believe that this is being caused by an unintentional logic change in #705 that causes the target to be newly generated when thedeclaration
parameter is set to false. https://github.com/aspect-build/rules_ts/pull/705/files#diff-fd5b55e792f846b8312680267efd413bf73bfe655630485e1514db77eb7d187cR399My understanding is that this target is not needed since tsc will still be invoked as long as no custom transpiler is set and js files are still being generated. The test target fails in some configurations for our build (including the Windows build), but we can't rule out that this is due to an unrelated issue with our build. The issue here is that an unnecessary additional target is being generated.
Version
Development (host) and target OS/architectures:
macOS Sonoma 14.7 (among others)
Output of
bazel --version
:bazel 7.3.1
Version of the Aspect rules, or other relevant rules from your
WORKSPACE
orMODULE.bazel
file:rules_js v2.0.1
bazel-lib 2.9.2
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: