feat: Update version to 2.56.4 in package.json and package-lock.json; add prestart script to ensure build exists before starting

This commit is contained in:
2025-11-10 20:35:15 +01:00
parent 04a1a4c0a4
commit 8a187f1630
3 changed files with 4 additions and 404 deletions

View File

@@ -22,6 +22,7 @@
"build": "tsc",
"postbuild": "node -e \"console.log('\\n✅ Build complete! Run \\\"npm start\\\" to launch the bot.\\n')\"",
"test": "node --test --loader ts-node/esm tests/**/*.test.ts",
"prestart": "node -e \"const fs = require('fs'); if (!fs.existsSync('./dist/index.js')) { console.log('⚠️ Build not found, building now...'); require('child_process').execSync('npm run build', {stdio: 'inherit'}); }\"",
"start": "node --enable-source-maps ./dist/index.js",
"ts-start": "node --loader ts-node/esm ./src/index.ts",
"dev": "ts-node ./src/index.ts -dev",