aspect-build / rules_ts

Bazel rules for the `tsc` compiler from http://typescriptlang.org
https://docs.aspect.build/rules/aspect_rules_ts
Apache License 2.0
104 stars 58 forks source link

feat: emit declarations with a tool other than tsc #648

Closed alexeagle closed 5 days ago

alexeagle commented 3 months ago

Mirrors how the transpiler attribute works.

Here's a profile, showing that frontend and backend targets are type-checked in parallel with core even though they both depend on it. The small green boxes in the upper-left are the 10ms swc action that produces the core/index.d.ts file needed by the type-checker for frontend and backend

Screenshot from 2024-07-02 15-45-24


Changes are visible to end-users: yes

Test plan

aspect-workflows[bot] commented 3 months ago

Test

All tests were cache hits

82 tests (100.0%) were fully cached saving 12s.


Buildifier      Format

matthewjh commented 2 months ago

@alexeagle this is really exciting

jbedard commented 5 days ago

Done in https://github.com/aspect-build/rules_ts/pull/697