Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ report.[0-9]_.[0-9]_.[0-9]_.[0-9]_.json
# IDEs
.claude/settings.local.json
.idea
.vscode
.vscode/*
!.vscode/settings.json
CLAUDE.local.md

# Finder (MacOS) folder config
Expand Down
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"typescript.experimental.useTsgo": true
}
2 changes: 1 addition & 1 deletion CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ bun run db:seed # Seed default teams (RACheats)

# Development
bun run dev # Run with hot reload (--watch)
bun run tsc # TypeScript type checking
bun run tsc # TypeScript type checking (via tsgo)
bun run lint # Run ESLint
bun run lint:fix # Auto-fix linting issues
bun run test # Run all tests (vitest)
Expand Down
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ Individual checks:
```bash
bun lint # Check code style
bun lint:fix # Auto-fix style issues
bun tsc # TypeScript type checking
bun test # Run tests
bun tsc # TypeScript type checking (via tsgo)
bun run test # Run tests (via vitest)
```

### 4. Commit Your Changes
Expand Down
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,10 @@ RABot utilizes:
- **[Discord.js](https://discord.js.org/)** for tight integration with Discord
- **[Drizzle ORM](https://orm.drizzle.team/)** with SQLite for data persistence
- **[@retroachievements/api](https://github.com/RetroAchievements/api-js)** for web API calls
- **[Pino](https://getpino.io/#/)** for structured logging with command analytics

## Requirements

- [Bun](https://bun.sh) 1.2.18+
- [Bun](https://bun.sh) 1.3.6+
- A Discord bot token

## Installation
Expand Down Expand Up @@ -115,7 +114,7 @@ For production deployments, the bot is automatically deployed via Forge when cha
- `bun db:migrate` - Apply database migrations
- `bun lint` - Run ESLint
- `bun lint:fix` - Run ESLint with auto-fix
- `bun tsc` - Run TypeScript type checking
- `bun tsc` - Run TypeScript type checking (via tsgo)
- `bun run test` - Run all tests
- `bun run test:watch` - Run tests in watch mode
- `bun verify` - Run lint, type checking, and tests (comprehensive check)
Expand Down
17 changes: 17 additions & 0 deletions bun.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 2 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"db:generate": "drizzle-kit generate",
"db:migrate": "bun run src/database/migrate.ts",
"db:seed": "bun run src/database/seed-teams.ts",
"tsc": "tsc --noEmit",
"tsc": "tsgo --noEmit",
"lint": "eslint src --cache",
"lint:fix": "eslint src --fix",
"test": "vitest run",
Expand All @@ -48,6 +48,7 @@
"devDependencies": {
"@types/bun": "latest",
"@types/figlet": "^1.7.0",
"@typescript/native-preview": "^7.0.0-dev.20260228.1",
"drizzle-kit": "0.31.4",
"eslint": "^9.31.0",
"eslint-config-prettier": "^10.1.5",
Expand All @@ -59,8 +60,5 @@
"eslint-plugin-unicorn": "^59.0.1",
"typescript-eslint": "^8.37.0",
"vitest": "^4.0.18"
},
"peerDependencies": {
"typescript": "^5"
}
}
3 changes: 3 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
"verbatimModuleSyntax": true,
"noEmit": true,

// Explicitly list @types packages since tsgo doesn't auto-discover them.
"types": ["bun", "figlet"],

// Best practices
"strict": true,
"skipLibCheck": true,
Expand Down