chore: add option to undeploy commands and not deploy on start

This commit is contained in:
Ahmad 2025-04-16 19:20:17 -04:00
parent 072c34d778
commit 14667ad69f
No known key found for this signature in database
GPG key ID: 8FD8A93530D182BF
5 changed files with 113 additions and 12 deletions

View file

@ -10,8 +10,10 @@
"compile": "npx tsc",
"target": "node ./target/discord-bot.js",
"start:dev": "yarn run compile && yarn run target",
"start:dev:no-deploy": "cross-env SKIP_COMMAND_DEPLOY=true yarn run start:dev",
"start:prod": "yarn compile && pm2 start ./target/discord-bot.js --name poixpixel-discord-bot",
"restart": "pm2 restart poixpixel-discord-bot",
"undeploy-commands": "yarn compile && node --experimental-specifier-resolution=node ./target/util/undeployCommands.js",
"lint": "npx eslint ./src && npx tsc --noEmit",
"format": "prettier --check --ignore-path .prettierignore .",
"format:fix": "prettier --write --ignore-path .prettierignore .",
@ -34,6 +36,7 @@
"@types/pg": "^8.11.13",
"@typescript-eslint/eslint-plugin": "^8.30.1",
"@typescript-eslint/parser": "^8.30.1",
"cross-env": "^7.0.3",
"drizzle-kit": "^0.31.0",
"eslint": "^9.24.0",
"eslint-config-prettier": "^10.1.2",