mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
Use separate tsconfig for server in custom-server-typescript example (#3963)
This commit is contained in:
parent
5bb9fa67b1
commit
2e641e9e8c
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "nodemon server/index.ts",
|
"dev": "nodemon server/index.ts",
|
||||||
"build": "next build && tsc --module commonjs",
|
"build": "next build && tsc --project tsconfig.server.json",
|
||||||
"start": "NODE_ENV=production node production-server/index.js"
|
"start": "NODE_ENV=production node production-server/index.js"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|
|
@ -21,10 +21,6 @@
|
||||||
"dom",
|
"dom",
|
||||||
"es2015",
|
"es2015",
|
||||||
"es2016"
|
"es2016"
|
||||||
],
|
]
|
||||||
"outDir": "production-server/"
|
}
|
||||||
},
|
|
||||||
"include": [
|
|
||||||
"server/**/*.ts"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
|
|
8
examples/custom-server-typescript/tsconfig.server.json
Normal file
8
examples/custom-server-typescript/tsconfig.server.json
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
{
|
||||||
|
"extends": "./tsconfig.json",
|
||||||
|
"compilerOptions": {
|
||||||
|
"module": "commonjs",
|
||||||
|
"outDir": "production-server/"
|
||||||
|
},
|
||||||
|
"include": ["server/**/*.ts"]
|
||||||
|
}
|
Loading…
Reference in a new issue