diff --git a/.github/workflows/js.yml b/.github/workflows/js.yml index b48c016..a20c7b8 100644 --- a/.github/workflows/js.yml +++ b/.github/workflows/js.yml @@ -22,4 +22,6 @@ jobs: node-version: ${{ matrix.node-version }} cache: 'npm' - run: npm ci + - run: npm run check-types - run: npm test + diff --git a/package.json b/package.json index feb218c..760d646 100644 --- a/package.json +++ b/package.json @@ -10,6 +10,7 @@ "check-format": "prettier --check 'src/*.{js,jsx,json,ts,tsx,html,css,md}' '*.{cjs,js,jsx,json,ts,tsx,html,css,md}'", "lint": "eslint --ext .ts,.tsx,.js,.jsx src/", "build": "rm -rf lib && tsc", + "check-types": "tsc --noEmit", "prepack": "npm run lint && npm run build", "test": "vitest run", "test:watch": "vitest" diff --git a/tsconfig.json b/tsconfig.json index f693ab1..94ba36e 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -14,7 +14,8 @@ "moduleResolution": "NodeNext", "outDir": "lib", "allowJs": true, - "preserveSymlinks": true + "preserveSymlinks": true, + "skipLibCheck": true, }, "include": ["src/**/*.ts"], "exclude": ["node_modules", "lib/**/*"]