Add typecheck CI job and package script

Introduce a `typecheck` job to GitHub Actions that sets up pnpm and Node.js (v22), installs dependencies, and runs `pnpm typecheck` on the workspace. Make the `build` job depend on `typecheck`. Also add a `typecheck` script (`tsc --noEmit`) to packages/websocket/package.json to enable package-level type checking. This ensures TypeScript errors are caught before the build runs.
This commit is contained in:
手瓜一十雪 committed 2026-05-06 10:23:45 +08:00
1 parent e67e0ea497
commit 60189d9c1d
2 files changed
+33 -1

No files matched your search

+3
View File
@@ -12,6 +12,9 @@
}
},
"description": "SnowLuma in-tree WebSocket implementation. Loads packages/runtime/native/websocket-<platform>-<arch>.node via process.dlopen().",
"scripts": {
"typecheck": "tsc --noEmit"
},
"devDependencies": {
"@types/node": "^24.12.2",
"typescript": "catalog:"