add compile target
All checks were successful
PR Check / lint-and-format (pull_request) Successful in 21s

This commit is contained in:
Mylloon 2024-10-14 23:39:58 +02:00
parent 23f8d5d4d1
commit c16a8849ed
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -4,12 +4,13 @@
"description": "Bot discord",
"main": "src/index.js",
"scripts": {
"main": "rm -r dist 2> /dev/null; npx tsc && node ./dist/index.js",
"compile": "rm -r dist 2> /dev/null; npx tsc",
"main": "npm run compile && node ./dist/index.js",
"debug": "npx tsnd --respawn ./src/index.ts",
"lint": "npx eslint src",
"format-check": "npx prettier --check src",
"format-write": "npx prettier --write src",
"test": "npx jest"
"test": "npm run compile && npx jest"
},
"repository": {
"type": "git",