@pawk3k/ts-migrator@1.0.1
Package to help your team do the typescript migration of typescript , react repository by allowing to push more stricter option and not compromise on the current setup
A migration tool from Typescript To Typescript
Why ?
Adopting actually strict typescript is hard.
Well some times you don't have time to fix all compilation errors, but you don't want to let introduce any new, then just suppress all the existing ones and let the team fix all the rest with the flow
So with any typescript migration just go
@ts-expect-error
and then just adopt it incrementally
How to use it :D
Actually I'm noob in jsr
XD
So you firstly install it in your repository:
npx or any x
npx jsr add @pawk3k/ts-migrator
Then you use it from the root of your package:
node ./node_modules/@pawk3k/ts-migrator/mod.js .
Future Plans
- Add auto fix tool to remove no longer used
@ts-expect-errors
to automate the process of this migration. It might be useful if you have a lot of untyped process.env for example then you add the type and now you have to manually go through all of the files that have it - not good
Add Package
deno add jsr:@pawk3k/ts-migrator
Import symbol
import * as ts_migrator from "@pawk3k/ts-migrator";
Import directly with a jsr specifier
import * as ts_migrator from "jsr:@pawk3k/ts-migrator";
Add Package
pnpm i jsr:@pawk3k/ts-migrator
pnpm dlx jsr add @pawk3k/ts-migrator
Import symbol
import * as ts_migrator from "@pawk3k/ts-migrator";
Add Package
yarn add jsr:@pawk3k/ts-migrator
yarn dlx jsr add @pawk3k/ts-migrator
Import symbol
import * as ts_migrator from "@pawk3k/ts-migrator";
Add Package
npx jsr add @pawk3k/ts-migrator
Import symbol
import * as ts_migrator from "@pawk3k/ts-migrator";
Add Package
bunx jsr add @pawk3k/ts-migrator
Import symbol
import * as ts_migrator from "@pawk3k/ts-migrator";