diff --git a/noskiplibcheck_tsconfig.json b/noskiplibcheck_tsconfig.json new file mode 100644 index 0000000..5110549 --- /dev/null +++ b/noskiplibcheck_tsconfig.json @@ -0,0 +1,23 @@ +{ + "compilerOptions": { + "target": "es2020", + "module": "esnext", + "moduleResolution": "node", + "esModuleInterop": true, + "allowJs": true, + "strict": true, + "noEmit": true, + "lib": [ + "ES2020.Promise", + "DOM" + ], + "types": [ + "node", + "jest" + ] + }, + "include": ["packages/**/*.d.ts"], + "exclude": [ + "**/errors.ts" + ] +} diff --git a/package.json b/package.json index 2fda7c5..5c1a6d9 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,7 @@ "type": "module", "scripts": { "test:dev": "NODE_OPTIONS='--experimental-vm-modules' jest", - "test": "yarn test:dev --coverage && check-dts", + "test": "tsc -p noskiplibcheck_tsconfig.json && yarn test:dev --coverage && check-dts", "lint": "eslint . && prettier --check 'packages/**/*.{js,ts}'", "lint:fix": "eslint . --fix && prettier --check 'packages/**/*.{js,ts}' --write", "protos": "yarn protos:build && yarn protos:fix", diff --git a/tsconfig.json b/tsconfig.json index 0e6ec3e..37488d9 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -7,7 +7,7 @@ "allowJs": true, "strict": true, "noEmit": true, - "skipLibCheck": true, + "skipLibCheck": true, // otherwise check-dts fails AbortController + AbortSignal "lib": [ "ES2020.Promise", "DOM"