next-to-ts
v1.0.9
Published
Convert a next.js project to typescript in seconds
Downloads
24
Maintainers
Readme
Next To Typescript
Migrate your Next.js Project from javaScript to typescript in seconds
Get started
Make sure you are inside a next.js Project
Execute
npx next-to-ts
or
pnpx next-to-ts
What does it do
- It moves file these directories to typescript respectively.
components
|
|__ jsx,js --> tsx
lib
|
|
|__ js --> ts
pages or src/pages
|
|__api
| |
| |__.js --> .ts
|
|_____.jsx,.js -> .tsx
- Installs all necessary packages.
- sets up standard
tsconfig.json
for next.js apps - Have any idea to add one file an Issue or PR
Licence
This project is under MIT Licence
This project was created based on next2ts