Built-in TypeScript Watch Script (ts:watch) for Better DX #92353
abhishekmardiya
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Goals
Non-Goals
No response
Background
Next.js has great TypeScript support, but it does not include a built-in watch mode for continuous type checking.
Currently, developers manually add:
Proposal
Next.js could automatically include the following script in
package.jsonwhen TypeScript is detected:This allows developers to simply run:
This keeps the solution simple, aligns with existing workflows, and improves developer experience without introducing new commands.
Beta Was this translation helpful? Give feedback.
All reactions