From 56ee189f1ab076aef681dc7c3d23a4a8cc99e47f Mon Sep 17 00:00:00 2001 From: Samuel Date: Sat, 29 Aug 2026 14:19:03 +0100 Subject: [PATCH] fix: add typecheck and validate scripts to package.json for CI and local validation - Update typecheck scripts to use `tsc -b --noEmit` for project references - Add combined `validate` script (typecheck + lint) for fast local preflight - Update test.yml CI workflow to run `npm run validate` instead of separate lint/typecheck steps --- .github/workflows/test.yml | 7 ++----- package.json | 7 ++++--- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 46a74dd..0036c71 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -23,11 +23,8 @@ jobs: - name: Install dependencies run: npm install - - name: Run linter - run: npm run lint - - - name: Typecheck - run: npm run typecheck + - name: Validate (typecheck + lint) + run: npm run validate - name: Build run: npm run build diff --git a/package.json b/package.json index 14d17a8..15d111b 100644 --- a/package.json +++ b/package.json @@ -41,9 +41,10 @@ "test:coverage": "vitest --coverage", "test:exports": "tsc -p tsconfig.test-exports.json", "lint": "eslint . --ext .ts,.tsx", - "typecheck": "tsc --noEmit", - "typecheck:watch": "tsc --noEmit --watch", - "type-check": "tsc --noEmit", + "typecheck": "tsc -b --noEmit", + "typecheck:watch": "tsc -b --noEmit --watch", + "type-check": "tsc -b --noEmit", + "validate": "npm run typecheck && npm run lint", "size": "npm run build && size-limit" }, "dependencies": {