1.0.9 • Published 2 years ago

next-to-ts v1.0.9

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

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