From 9037f5125725dc31c122d066998aba47ee06d1e1 Mon Sep 17 00:00:00 2001 From: Cesar Alaestante Date: Mon, 22 Jul 2024 11:46:05 -0700 Subject: [PATCH 1/2] chore: add skipLibCheck for tsc --- .github/workflows/js.yml | 1 + package.json | 1 + tsconfig.json | 3 ++- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/js.yml b/.github/workflows/js.yml index b48c016..0bde22e 100644 --- a/.github/workflows/js.yml +++ b/.github/workflows/js.yml @@ -23,3 +23,4 @@ jobs: cache: 'npm' - run: npm ci - run: npm test + - run: npm run build 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/**/*"] From 4bdc050d19c5ef44b4f6ebc9f20313c43ae4867f Mon Sep 17 00:00:00 2001 From: Cesar Alaestante Date: Mon, 22 Jul 2024 11:47:13 -0700 Subject: [PATCH 2/2] update workflow --- .github/workflows/js.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/js.yml b/.github/workflows/js.yml index 0bde22e..a20c7b8 100644 --- a/.github/workflows/js.yml +++ b/.github/workflows/js.yml @@ -22,5 +22,6 @@ jobs: node-version: ${{ matrix.node-version }} cache: 'npm' - run: npm ci + - run: npm run check-types - run: npm test - - run: npm run build +