1
0
Fork 0
mirror of https://github.com/muerwre/vk-tg-bot.git synced 2025-04-24 22:46:41 +07:00

add ncc builder

This commit is contained in:
Fedor Katurov 2025-02-24 20:02:11 +07:00
parent 3a0b21bc19
commit 2131447939
4 changed files with 43 additions and 5 deletions

View file

@ -8,7 +8,7 @@
"environment": "docker-compose -f ./docker/docker-compose.yml up db -d",
"start": "node ./dist/index.js",
"dev": "NODE_ENV=dev node -r ts-node/register ./src/index.ts --config=./config.yml",
"build": "rm -rf ./dist && tsc && copyfiles -f ./config*.yml ./dist && copyfiles ./templates/*.md ./dist",
"build": "rm -rf ./output ./dist && tsc && yarn ncc build ./output/index.js -o ./dist && rm -rf ./output && copyfiles -f ./config*.yml ./dist && copyfiles ./templates/*.md ./dist",
"test": "jest"
},
"dependencies": {
@ -56,6 +56,7 @@
"@types/winston": "^2.4.4",
"@types/yargs": "^16.0.1",
"@types/yup": "^0.29.11",
"@vercel/ncc": "^0.38.3",
"copyfiles": "^2.4.1",
"jest": "^29.7.0",
"prettier": "^2.2.1",