As of #308 the TypeScript version and integrity can be automatically extracted, however this misses out on functionality present in npm_translate_lock such as applying patches.
A recent TypeScript release included a bug https://github.com/microsoft/TypeScript/pull/57849 (5.4.x, broken in 5.4.2 and fixed in 5.4.5) which was fixed with a trivial patch, however it could not be applied to Rules TS's @npm_typescript repo.
Describe the feature
Instead of pulling in TypeScript with bespoke logic
What is the current behavior?
As of #308 the TypeScript version and integrity can be automatically extracted, however this misses out on functionality present in
npm_translate_lock
such as applying patches.A recent TypeScript release included a bug https://github.com/microsoft/TypeScript/pull/57849 (
5.4.x
, broken in5.4.2
and fixed in5.4.5
) which was fixed with a trivial patch, however it could not be applied to Rules TS's@npm_typescript
repo.Describe the feature
Instead of pulling in TypeScript with bespoke logic
https://github.com/aspect-build/rules_ts/blob/87e372303bdc35811014b3bad08bb0e761ad1fcc/ts/private/npm_repositories.bzl#L66
support using TypeScript from
npm_translate_lock
'snode_modules
directly. This way functionality like patching comes free.