-
Notifications
You must be signed in to change notification settings - Fork 26.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add automatic TypeScript setup #7125
Conversation
automatic tsconfig generating
Stats from current PRClick to expand stats
Click to expand serverless stats
|
recursive-readdir to simplify ignoring node_modules
Stats from current PRClick to expand stats
Click to expand serverless stats
|
Stats from current PRClick to expand stats
Click to expand serverless stats
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we have a test for this behavior?
path.resolve for locating tsconfig
Yup, added some tests |
Stats from current PRClick to expand stats
Click to expand serverless stats
|
Stats from current PRClick to expand stats
Click to expand serverless stats
|
Stats from current PRClick to expand stats
Click to expand serverless stats
|
Stats from current PRClick to expand stats
Click to expand serverless stats
|
Stats from current PRClick to expand stats
Click to expand serverless stats
|
Stats from current PRClick to expand stats
Click to expand serverless stats
|
Stats from current PRClick to expand stats
Click to expand serverless stats
|
Stats from current PRClick to expand stats
Click to expand serverless stats
|
Stats from current PRClick to expand stats
Click to expand serverless stats
|
Stats from current PRClick to expand stats
Click to expand serverless stats
|
Stats from current PRClick to expand stats
Click to expand serverless stats
|
Stats from current PRClick to expand stats
Click to expand serverless stats
|
Stats from current PRClick to expand stats
Click to expand serverless stats
|
Stats from current PRClick to expand stats
Click to expand serverless stats
|
Stats from current PRClick to expand stats
Click to expand serverless stats
|
Hi @ijjk, Just upgraded to next v9 and am unable to use next with ts-node now. I'm not sure if I should create an issue (as ts-node not officially supported) but was wondering if there is a way to disable modifying I have a custom server setup also written in typescript run using ts-node
But now when I run my server, on first run it starts, then next modifies my tsconfig to set |
@azizhk are you sure you still need a custom server in v9? Regardless, you need to create a separate |
Thanks @Timer, that worked.
Yeah I am serving a few APIs as well from the same server, hence need it. Will split it up soon and try to get out of it.
Should we be documenting this under the custom server or Typescript section? |
Hi @Timer, do you know if it is necessary for I've been using API Routes ( |
Also added automatic
tsconfig.json
generating for when.ts
files exist in a project but atsconfig.json
does not.