Skip to content

Commit b85fcea

Browse files
authored
[Docs] Remove babel from custom-server-typescript example (vercel#40309)
## 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)
1 parent 1aa341f commit b85fcea

File tree

3 files changed

+11
-13
lines changed

3 files changed

+11
-13
lines changed

Diff for: examples/custom-server-typescript/.babelrc

-3
This file was deleted.

Diff for: examples/custom-server-typescript/package.json

+9-9
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,17 @@
66
"start": "cross-env NODE_ENV=production node dist/index.js"
77
},
88
"dependencies": {
9-
"cross-env": "^7.0.2",
9+
"cross-env": "^7.0.3",
1010
"next": "latest",
11-
"react": "^17.0.2",
12-
"react-dom": "^17.0.2"
11+
"react": "^18.2.0",
12+
"react-dom": "^18.2.0"
1313
},
1414
"devDependencies": {
15-
"@types/node": "^12.0.12",
16-
"@types/react": "^16.9.44",
17-
"@types/react-dom": "^16.9.8",
18-
"nodemon": "^2.0.4",
19-
"ts-node": "^8.10.2",
20-
"typescript": "4.0"
15+
"@types/node": "^18.7.15",
16+
"@types/react": "^18.0.18",
17+
"@types/react-dom": "^18.0.6",
18+
"nodemon": "^2.0.19",
19+
"ts-node": "^10.9.1",
20+
"typescript": "~4.8.2"
2121
}
2222
}

Diff for: examples/custom-server-typescript/tsconfig.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@
1919
"preserveConstEnums": true,
2020
"sourceMap": true,
2121
"forceConsistentCasingInFileNames": true,
22-
"resolveJsonModule": true
22+
"resolveJsonModule": true,
23+
"incremental": true
2324
},
2425
"exclude": ["dist", ".next", "out", "next.config.js"],
2526
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"]

0 commit comments

Comments
 (0)