add start for production

This commit is contained in:
Moriz Wahl 2023-12-04 13:09:44 +01:00
parent a3df10a611
commit caea11f904
2 changed files with 2 additions and 1 deletions

View File

@ -16,6 +16,7 @@
}, },
"scripts": { "scripts": {
"build": "tsc", "build": "tsc",
"start": "npm run build && TZ=UTC TS_NODE_BASEURL=./build node -r tsconfig-paths/register build/src/index.js",
"dev": "TZ=UTC nodemon -w src --ext ts,json --exec ts-node -r tsconfig-paths/register src/index.ts", "dev": "TZ=UTC nodemon -w src --ext ts,json --exec ts-node -r tsconfig-paths/register src/index.ts",
"test:lint": "npm run test:lint:eslint && npm run test:lint:remark", "test:lint": "npm run test:lint:eslint && npm run test:lint:remark",
"test:lint:eslint": "eslint --ext .ts,.tsx,.js,.jsx,.json,.yml,.yaml --max-warnings 0 --ignore-path .gitignore .", "test:lint:eslint": "eslint --ext .ts,.tsx,.js,.jsx,.json,.yml,.yaml --max-warnings 0 --ignore-path .gitignore .",

View File

@ -10,7 +10,7 @@
"paths": { "paths": {
"#types/*": ["./src/graphql/types/*"] "#types/*": ["./src/graphql/types/*"]
}, },
"outDir": "./build", "outDir": "./build/src",
"esModuleInterop": true, "esModuleInterop": true,
"strict": true, "strict": true,
"skipLibCheck": true "skipLibCheck": true