feat(HAI-088): add @types/node to dashboard and typecheck regression test

- Add @types/node ^22.0.0 to @hai/dashboard devDependencies
- Add typecheck regression test that runs tsc --noEmit --skipLibCheck false
- Update pnpm-lock.yaml with resolved dependencies
This commit is contained in:
Dustin Byrne
2026-03-26 01:00:50 -04:00
parent b065029066
commit a12550d625
3 changed files with 92 additions and 10 deletions

View File

@@ -26,6 +26,7 @@
"@testing-library/jest-dom": "^6.9.1",
"@testing-library/react": "^16.3.2",
"@types/express": "^5.0.0",
"@types/node": "^22.0.0",
"@types/react": "^19.0.0",
"@types/react-dom": "^19.0.0",
"@vitejs/plugin-react": "^4.3.0",

View File

@@ -0,0 +1,16 @@
import { execFileSync } from "node:child_process";
import { resolve } from "node:path";
import { describe, it, expect } from "vitest";
describe("typecheck", () => {
it("passes tsc --noEmit --skipLibCheck false", () => {
const cwd = resolve(__dirname, "../..");
expect(() =>
execFileSync("npx", ["tsc", "--noEmit", "--skipLibCheck", "false"], {
cwd,
stdio: "pipe",
timeout: 60_000,
}),
).not.toThrow();
});
});