rules_ts icon indicating copy to clipboard operation
rules_ts copied to clipboard

ts_validate_options should be a validation action

Open alexeagle opened this issue 3 years ago • 1 comments

once we force users to upgrade to bazel 6.0 we should adopt https://docs.bazel.build/versions/main/skylark/rules.html#validation-actions

(note, the feature doesn't exist in Bazel 5 afaict)

alexeagle avatar Jul 11 '22 14:07 alexeagle

Also, validation actions give us a way to type-check .d.ts inputs even if no output files are produced. Maybe useful for a "ts_declaration" rule ?

alexeagle avatar Jul 11 '22 14:07 alexeagle

Fixed by @dzbarsky on 2.x branch - thanks!

alexeagle avatar Aug 08 '23 22:08 alexeagle