2
0
mirror of https://github.com/ad1217/PrinterStatus synced 2024-11-24 08:23:48 -05:00

Compile and run server directly for prod, instead of using ts-node

This commit is contained in:
Adam Goldsmith 2022-01-10 01:41:34 -05:00
parent d6a3fb766f
commit 11996e5174
3 changed files with 6 additions and 1 deletions

1
server/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
dist/

View File

@ -21,6 +21,8 @@
}, },
"scripts": { "scripts": {
"start": "npm run dev", "start": "npm run dev",
"dev": "ts-node --files ./src/server.ts" "dev": "ts-node --files ./src/server.ts",
"build": "tsc",
"serve": "node dist/server.js"
} }
} }

View File

@ -1,9 +1,11 @@
{ {
"include": ["src/**/*"],
"compilerOptions": { "compilerOptions": {
"target": "es5", "target": "es5",
"strict": true, "strict": true,
"module": "commonjs", "module": "commonjs",
"moduleResolution": "node", "moduleResolution": "node",
"outDir": "dist",
"experimentalDecorators": true "experimentalDecorators": true
} }
} }