next-to-ts

1.0.9 • Public • Published

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

/next-to-ts/

    Package Sidebar

    Install

    npm i next-to-ts

    Weekly Downloads

    1

    Version

    1.0.9

    License

    MIT

    Unpacked Size

    9.62 kB

    Total Files

    9

    Last publish

    Collaborators

    • imbios