Fix build script

This commit is contained in:
2022-03-05 21:58:02 +07:00
parent abc2f3053c
commit da8fbef5dd
3 changed files with 174 additions and 10 deletions
+2 -1
View File
@@ -32,6 +32,7 @@
"@types/node": "^17.0.21",
"@types/ping": "^0.4.1",
"@types/validator": "^13.7.1",
"copyfiles": "^2.4.1",
"prisma": "^3.10.0",
"ts-node-dev": "^1.1.8",
"yarn-upgrade-all": "^0.6.1"
@@ -39,7 +40,7 @@
"scripts": {
"tsc": "tsc",
"development": "ts-node-dev ./src/index.ts --respawn --transpileOnly",
"build": "tsc -b",
"build": "tsc -b && copyfiles -u 1 configs_example/**/*.* build/configs_example/",
"start": "node ./build/index.js",
"production": "tsc && node ./build/index.js",
"test": "mocha -r ts-node/register tests/**/*.ts"