Moved to bun

This commit is contained in:
2025-08-09 23:42:54 +02:00
parent 8a686222be
commit 30e18257d0
20 changed files with 608 additions and 5078 deletions

View File

@@ -12,32 +12,25 @@
},
"homepage": "https://gitlab.com/illegitimate/illegitimate-bot",
"scripts": {
"start": "node dist/index.js",
"build": "swc src -d dist --strip-leading-paths",
"watch": "swc src -d dist --strip-leading-paths --watch",
"dev": "nodemon --config .nodemon/swc.json",
"dev:ts": "nodemon --config .nodemon/ts.json",
"dev:ts:inspect": "nodemon --config .nodemon/debug.json",
"dev:js": "nodemon --config .nodemon/js.json",
"start": "bun run --bun src/index.ts",
"dev": "bun run --bun --watch src/index.ts",
"fmt": "dprint fmt \"**/*.ts\"",
"check": "pnpm tscheck && pnpm lint",
"check": "bun tscheck && bun lint",
"tscheck": "tsc",
"lint": "eslint",
"lint:fix": "eslint --fix",
"db:generate": "drizzle-kit generate",
"db:migrate": "drizzle-kit migrate",
"db:studio": "drizzle-kit studio",
"db:start": "docker compose -f dev-db.yml up -d",
"db:stop": "docker compose -f dev-db.yml down",
"push:prod": "tsx scripts/deploy-commands.ts",
"push:dev": "tsx scripts/dev-deploy.ts",
"delete:dev": "tsx scripts/delete-commands.ts"
"db:up": "docker compose -f dev-db.yml up -d",
"db:down": "docker compose -f dev-db.yml down",
"push:prod": "bun run scripts/deploy-commands.ts",
"push:dev": "bun run scripts/dev-deploy.ts",
"delete:dev": "bun run scripts/delete-commands.ts"
},
"author": "Taken",
"license": "GPL-3.0-only",
"dependencies": {
"@swc/cli": "^0.7.7",
"@swc/core": "^1.11.29",
"@t3-oss/env-core": "^0.13.6",
"anilist": "^0.12.4",
"axios": "^1.9.0",
@@ -45,7 +38,6 @@
"cron": "^4.3.1",
"discord.js": "^14.19.3",
"drizzle-orm": "^0.44.1",
"ioredis": "^5.6.1",
"ms": "^2.1.3",
"postgres": "^3.4.7",
"pretty-ms": "^9.2.0",
@@ -54,6 +46,7 @@
"devDependencies": {
"@eslint/eslintrc": "^3.3.1",
"@eslint/js": "^9.28.0",
"@types/bun": "^1.2.19",
"@types/ms": "^2.1.0",
"@types/node": "^22.15.29",
"@typescript-eslint/eslint-plugin": "^8.33.0",
@@ -65,9 +58,6 @@
"eslint": "^9.28.0",
"eslint-plugin-drizzle": "^0.2.3",
"globals": "^16.2.0",
"nodemon": "^3.1.10",
"tsx": "^4.19.4",
"typescript": "^5.8.3"
},
"packageManager": "pnpm@9.15.9"
}
}