Skip to content

Commit

Permalink
Add incremental to template/tsconfig.json to avoid changes on first…
Browse files Browse the repository at this point in the history
… build (#30357)

I used `create-next-app` to create a new fancy Next 12 app, ran `yarn build` and got a git diff. The tsconfig.json had a `incremental` added by next. Just running build shouldn't need I have uncommitted changes.
  • Loading branch information
oBusk committed Oct 27, 2021
1 parent ff926d5 commit 718003c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion packages/create-next-app/create-app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,6 @@ export async function createApp({
*/
const packageJson = {
name: appName,
version: '0.1.0',
private: true,
scripts: {
dev: 'next dev',
Expand Down
3 changes: 2 additions & 1 deletion packages/create-next-app/templates/typescript/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "preserve"
"jsx": "preserve",
"incremental": true
},
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"],
"exclude": ["node_modules"]
Expand Down

0 comments on commit 718003c

Please sign in to comment.