chore(构建): Bun 锁到 1.4.4,CI 和镜像不再跟 latest;后端类型检查换成 bun check
单二进制把运行时一起打进去,CI 装的是几线上就是几,之前三处都不锁(@types/bun latest、 setup-bun latest、oven/bun:1),1.4.x 每版都有破坏性变更会悄悄上线。 顺带 bunfig 加 minimumReleaseAge = "3d",@types/bun 除外。 后端 typecheck 从 tsc 换成 bun check,1.9s → 0.26s,报错一致。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
b3f5ed41ae
commit
eb0309ae35
7 files changed
+72
-58
No files matched your search
@@ -39,6 +39,11 @@ bun run dev # api(3000) + worker + web(5173) 一起起
|
||||
首次要先建 `.env`(照 `.env.example`)。判题机 token 两边必须一致:
|
||||
`.env` 的 `JUDGE_SERVER_TOKEN` 和 `docker/.env` 的 `OJ2_JUDGE_TOKEN`。
|
||||
|
||||
**Bun 版本是锁死的**:单二进制把运行时一起打进去,CI 装的是几、线上跑的就是几。
|
||||
升级要改三处 —— 根 `package.json` 的 `packageManager`(CI 的 setup-bun 读它)和
|
||||
`@types/bun`、`docker/Dockerfile` 的 `oven/bun:x.y.z` —— 然后 `bun install`。
|
||||
`bunfig.toml` 设了 `minimumReleaseAge = "3d"`,新发布不满 3 天的包装不上,`@types/bun` 除外。
|
||||
|
||||
常用检查:
|
||||
|
||||
```bash
|
||||
|
||||
Reference in new issue
Block a user