rules_ts
rules_ts copied to clipboard
ts_validate_options should be a validation action
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)
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 ?
Fixed by @dzbarsky on 2.x branch - thanks!