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": {