Skip to content

Commit

Permalink
[Docs] Remove babel from custom-server-typescript example (#40309)
Browse files Browse the repository at this point in the history
## Documentation / Examples

- [x] Make sure the linting passes by running `pnpm lint`
- [x] The examples guidelines are followed from [our contributing doc](https://github.com/vercel/next.js/blob/canary/contributing.md#adding-examples)
  • Loading branch information
HaNdTriX authored Sep 8, 2022
1 parent 1aa341f commit b85fcea
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 13 deletions.
3 changes: 0 additions & 3 deletions examples/custom-server-typescript/.babelrc

This file was deleted.

18 changes: 9 additions & 9 deletions examples/custom-server-typescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,17 @@
"start": "cross-env NODE_ENV=production node dist/index.js"
},
"dependencies": {
"cross-env": "^7.0.2",
"cross-env": "^7.0.3",
"next": "latest",
"react": "^17.0.2",
"react-dom": "^17.0.2"
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
"devDependencies": {
"@types/node": "^12.0.12",
"@types/react": "^16.9.44",
"@types/react-dom": "^16.9.8",
"nodemon": "^2.0.4",
"ts-node": "^8.10.2",
"typescript": "4.0"
"@types/node": "^18.7.15",
"@types/react": "^18.0.18",
"@types/react-dom": "^18.0.6",
"nodemon": "^2.0.19",
"ts-node": "^10.9.1",
"typescript": "~4.8.2"
}
}
3 changes: 2 additions & 1 deletion examples/custom-server-typescript/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
"preserveConstEnums": true,
"sourceMap": true,
"forceConsistentCasingInFileNames": true,
"resolveJsonModule": true
"resolveJsonModule": true,
"incremental": true
},
"exclude": ["dist", ".next", "out", "next.config.js"],
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"]
Expand Down

0 comments on commit b85fcea

Please sign in to comment.