Skip to content

Commit 5a480ce

Browse files
authored
chore: use tsgo instead of tsc (#45)
1 parent 0806fc6 commit 5a480ce

8 files changed

Lines changed: 32 additions & 11 deletions

File tree

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ report.[0-9]_.[0-9]_.[0-9]_.[0-9]_.json
3030
# IDEs
3131
.claude/settings.local.json
3232
.idea
33-
.vscode
33+
.vscode/*
34+
!.vscode/settings.json
3435
CLAUDE.local.md
3536

3637
# Finder (MacOS) folder config

.vscode/settings.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"typescript.experimental.useTsgo": true
3+
}

CLAUDE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ bun run db:seed # Seed default teams (RACheats)
1414

1515
# Development
1616
bun run dev # Run with hot reload (--watch)
17-
bun run tsc # TypeScript type checking
17+
bun run tsc # TypeScript type checking (via tsgo)
1818
bun run lint # Run ESLint
1919
bun run lint:fix # Auto-fix linting issues
2020
bun run test # Run all tests (vitest)

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,8 @@ Individual checks:
8484
```bash
8585
bun lint # Check code style
8686
bun lint:fix # Auto-fix style issues
87-
bun tsc # TypeScript type checking
88-
bun test # Run tests
87+
bun tsc # TypeScript type checking (via tsgo)
88+
bun run test # Run tests (via vitest)
8989
```
9090

9191
### 4. Commit Your Changes

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,10 @@ RABot utilizes:
2525
- **[Discord.js](https://discord.js.org/)** for tight integration with Discord
2626
- **[Drizzle ORM](https://orm.drizzle.team/)** with SQLite for data persistence
2727
- **[@retroachievements/api](https://github.com/RetroAchievements/api-js)** for web API calls
28-
- **[Pino](https://getpino.io/#/)** for structured logging with command analytics
2928

3029
## Requirements
3130

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

3534
## Installation
@@ -115,7 +114,7 @@ For production deployments, the bot is automatically deployed via Forge when cha
115114
- `bun db:migrate` - Apply database migrations
116115
- `bun lint` - Run ESLint
117116
- `bun lint:fix` - Run ESLint with auto-fix
118-
- `bun tsc` - Run TypeScript type checking
117+
- `bun tsc` - Run TypeScript type checking (via tsgo)
119118
- `bun run test` - Run all tests
120119
- `bun run test:watch` - Run tests in watch mode
121120
- `bun verify` - Run lint, type checking, and tests (comprehensive check)

bun.lock

Lines changed: 17 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"db:generate": "drizzle-kit generate",
3030
"db:migrate": "bun run src/database/migrate.ts",
3131
"db:seed": "bun run src/database/seed-teams.ts",
32-
"tsc": "tsc --noEmit",
32+
"tsc": "tsgo --noEmit",
3333
"lint": "eslint src --cache",
3434
"lint:fix": "eslint src --fix",
3535
"test": "vitest run",
@@ -48,6 +48,7 @@
4848
"devDependencies": {
4949
"@types/bun": "latest",
5050
"@types/figlet": "^1.7.0",
51+
"@typescript/native-preview": "^7.0.0-dev.20260228.1",
5152
"drizzle-kit": "0.31.4",
5253
"eslint": "^9.31.0",
5354
"eslint-config-prettier": "^10.1.5",
@@ -59,8 +60,5 @@
5960
"eslint-plugin-unicorn": "^59.0.1",
6061
"typescript-eslint": "^8.37.0",
6162
"vitest": "^4.0.18"
62-
},
63-
"peerDependencies": {
64-
"typescript": "^5"
6563
}
6664
}

tsconfig.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414
"verbatimModuleSyntax": true,
1515
"noEmit": true,
1616

17+
// Explicitly list @types packages since tsgo doesn't auto-discover them.
18+
"types": ["bun", "figlet"],
19+
1720
// Best practices
1821
"strict": true,
1922
"skipLibCheck": true,

0 commit comments

Comments
 (0)