1
0
Fork 0
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:
Alexander Kachkaev 2018-03-07 08:13:12 +00:00 committed by Tim Neutkens
parent 5bb9fa67b1
commit 2e641e9e8c
3 changed files with 11 additions and 7 deletions

View file

@ -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": {

View file

@ -21,10 +21,6 @@
"dom", "dom",
"es2015", "es2015",
"es2016" "es2016"
],
"outDir": "production-server/"
},
"include": [
"server/**/*.ts"
] ]
}
} }

View file

@ -0,0 +1,8 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"module": "commonjs",
"outDir": "production-server/"
},
"include": ["server/**/*.ts"]
}