Files
tts_bot/package.json
Claude Owner 204b813ecc build: make npm run build self-sufficient
The ts-cleaner step in the build script scans dist/ and crashes with
ENOENT if the directory doesn't exist (e.g. on a fresh clone or after
git clean). Previously README told users to 'mkdir -p dist' first,
but Dockerfile and CI didn't necessarily follow that. Prepend a small
node one-liner that mkdir's dist recursively before ts-cleaner runs,
and drop the now-redundant manual step from README.
2026-05-26 14:48:30 +09:00

46 lines
1.2 KiB
JSON

{
"name": "tts_bot",
"version": "0.0.1",
"description": "discord bot with typescript",
"homepage": "https://git.tkrmagid.kr/tkrmagid/tts_bot",
"bugs": {
"url": "https://git.tkrmagid.kr/tkrmagid/tts_bot/issues"
},
"repository": {
"type": "git",
"url": "git+https://git.tkrmagid.kr/tkrmagid/tts_bot.git"
},
"license": "ISC",
"author": "tkrmagid",
"type": "commonjs",
"main": "dist/index.js",
"scripts": {
"build": "node -e \"require('fs').mkdirSync('dist',{recursive:true})\" && ts-cleaner && tsc",
"start": "node .",
"dev": "ts-node src/index.ts",
"prod": "ts-node src/utils/Prod-commands.ts",
"test": "ts-node src/test.ts"
},
"devDependencies": {
"@types/better-sqlite3": "^7.6.13",
"@types/fluent-ffmpeg": "^2.1.28",
"@types/node": "^24.9.1",
"@types/ws": "^8.18.1",
"ffmpeg-static": "^5.2.0",
"ts-cleaner": "^1.0.5",
"ts-node": "^10.9.2"
},
"dependencies": {
"@discordjs/opus": "^0.10.0",
"@discordjs/voice": "^0.19.0",
"@snazzah/davey": "^0.1.7",
"axios": "^1.13.0",
"better-sqlite3": "^12.4.1",
"colors": "^1.4.0",
"discord.js": "^14.24.0",
"dotenv": "^17.2.3",
"fluent-ffmpeg": "^2.1.3",
"ws": "^8.18.3"
}
}