ts-patch
ts-patch copied to clipboard
Augment the TypeScript compiler to support extended functionality
Constantly getting error `[!] [BackupError]: Error backing up tsc.js - Couldn't create backup directory. EROFS: read-only filesystem, mkdir '/node_modules/typescript/lib-backup'`. Trying with version 2.0.1
ts-patch:  ttypescript:  Unfortunately, ttypescript appears to be unmaintained and broken with `declarationMap: true`, but I'm very loath to bring in 35 dependencies to replace 1. Is there any...
I'm using `ts-patch` in a monorepo with `rushjs` and `pnpm`. When installing multiple projects (=multiple `package.json` files) at once, the `prepare` script calling `ts-patch install -s` in each of the...
When installing ts-patch with Yarn 2 (pnp) I get errors regarding undeclared dependencies for `glob` and `resolve`: `Error: ts-patch tried to access glob, but it isn't declared in its dependencies;...
It is not currently possible to import a transformer that is written a standard ES module. Only transformers written as CommonJS modules work currently. Node has supported standard ES modules...
When using `webpack` with `ts-loader` and `ts-patch` - diagnostics produced by transformer plugin is not utilised, the result - compilation is not failing even with reported diagnostics with severity ERROR....
Fixes https://github.com/nonara/ts-patch/issues/139
I'm using [tsx](https://www.npmjs.com/package/tsx), a ts-node alternative for running `.ts` files with Node. Is there a some way to run ts-patch projects with tsx?
In the [readme](https://www.npmjs.com/package/ts-patch#source-transformers), it says `(program: ts.Program, config: PluginConfig, extras: TransformerExtras) => ts.TransformerFactory` which is read as `ts.TransformerFactory` but that's wrong imho because the type param / shouldn't be `any`...
We ran into an issue with ts-node + ts-patch where large projects or projects that use hmr fail to compile. ``` RangeError: Maximum call stack size exceeded at console.log (node:internal/console/constructor:378:6)...