Hello, I've been reading about an upcoming change in Tyepscript 5.0 that looks like it will break this package. The change can be found here: microsoft/TypeScript#51387
The PR transformed the typescript source code from using namespaces to modules. I believe this will be a breaking change for this tool as pointed out in the issue:
The output files have changed significantly; if you are patching TypeScript, you will definitely need to change your patches.
I tested the 11/21 nightly by installing typescript@next and errored while trying to run npx ts-patch install. This is the result of npx ts-patch check:
$ npx ts-patch check
Checking TypeScript v5.0.0-dev.20221121 installation in D:\Projects\my_app\node_modules\typescript
[!] [FileNotFound]: Could not find file D:\Projects\my_app\node_modules\typescript\lib\typescriptServices.js.
That file was removed as part of the above linked PR. I removed it from the list of tsc source files and still got an error while running the check command:
$ npx ts-patch check
Checking TypeScript v5.0.0-dev.20221121 installation in D:\Projects\my_app\node_modules\typescript
[-] tsc.js is not patched and cannot be patched!
[-] tsserverlibrary.js is not patched and cannot be patched!
[-] typescript.js is not patched and cannot be patched!
[-] tsserver.js is not patched and cannot be patched!
Hello, I've been reading about an upcoming change in Tyepscript 5.0 that looks like it will break this package. The change can be found here: microsoft/TypeScript#51387
The PR transformed the typescript source code from using namespaces to modules. I believe this will be a breaking change for this tool as pointed out in the issue:
I tested the 11/21 nightly by installing
typescript@nextand errored while trying to runnpx ts-patch install. This is the result ofnpx ts-patch check:That file was removed as part of the above linked PR. I removed it from the list of tsc source files and still got an error while running the check command: