♻️ refactor: migrate to bun and refactor

This commit is contained in:
2026-07-13 15:12:04 +07:00
parent 958ef050ad
commit e6c4bc0ccd
20 changed files with 1025 additions and 1332 deletions
+24 -15
View File
@@ -3,30 +3,39 @@
"version": "1.0.0",
"main": "index.js",
"repository": "https://github.com/YuzuZensai/TrollSSH.git",
"author": "Yuzu | ユズ ♡ <yuzu@kirameki.cafe>",
"author": "Yuzu <yuzu@kirameki.cafe>",
"license": "GPL-3.0",
"scripts": {
"tsc": "tsc",
"dev": "bun --watch src/index.ts",
"build": "tsc -b",
"start": "bun dist/index.js",
"typecheck": "tsc --noEmit",
"lint": "eslint .",
"format": "prettier --check .",
"format:fix": "prettier --write .",
"test": "bun test",
"docker-build": "docker build . -t ghcr.io/yuzuzensai/trollssh:latest",
"docker-run": "docker run -d --name trollssh --mount type=bind,source=\"$(pwd)\"/config,target=/home/node/app/config --mount type=bind,source=\"$(pwd)\"/video.mp4,target=/home/node/app/video.mp4 --network host --env-file .env ghcr.io/yuzuzensai/trollssh:latest",
"docker-push": "docker push ghcr.io/yuzuzensai/trollssh:latest",
"dev": "ts-node-dev --respawn --transpile-only src/index.ts"
"docker-push": "docker push ghcr.io/yuzuzensai/trollssh:latest"
},
"devDependencies": {
"@types/fluent-ffmpeg": "^2.1.20",
"@types/node": "^18.13.0",
"@eslint/js": "^10.0.1",
"@types/bun": "^1.3.14",
"@types/fluent-ffmpeg": "^2.1.28",
"@types/node": "^26.1.1",
"@types/sharp": "^0.31.1",
"@types/ssh2": "^1.11.7",
"@types/sshpk": "^1.17.1",
"ts-node-dev": "^2.0.0",
"typescript": "^4.9.5"
"@types/ssh2": "^1.15.5",
"@types/sshpk": "^1.17.5",
"eslint": "^10.7.0",
"eslint-config-prettier": "^10.1.8",
"prettier": "^3.9.5",
"typescript": "6.0.3",
"typescript-eslint": "^8.63.0"
},
"dependencies": {
"dotenv": "^16.0.3",
"fluent-ffmpeg": "^2.1.2",
"sharp": "^0.31.3",
"ssh2": "^1.11.0",
"sshpk": "^1.17.0"
"fluent-ffmpeg": "^2.1.3",
"sharp": "^0.35.3",
"ssh2": "^1.17.0",
"sshpk": "^1.18.0"
}
}