Migrate your Next.js project from JavaScript to TypeScript in seconds
Make sure you are inside a Next.js project
Execute
npx next-to-ts
or
pnpm dlx next-to-ts
- It moves file these directories to typescript respectively.
- Installs all necessary packages.
- sets up standard
tsconfig.json
for next.js apps
If you have any idea consider open issue or firing a PR.