From 9a7c2f15e8350164860cbe74f929d2b63d293899 Mon Sep 17 00:00:00 2001 From: Shu Ding Date: Sun, 15 May 2022 04:59:45 +0200 Subject: [PATCH] chore: Faster type checking (#1969) --- package.json | 4 ++-- tsconfig.json | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 6adfacde1..765d93734 100644 --- a/package.json +++ b/package.json @@ -77,12 +77,12 @@ "build:internal": "bunchee index.ts --cwd _internal --no-sourcemap", "prepublishOnly": "yarn clean && yarn build", "publish-beta": "yarn publish --tag beta", - "types:check": "tsc --noEmit --project tsconfig.check.json && tsc --noEmit -p test", + "types:check": "tsc --noEmit --project tsconfig.check.json", "format": "prettier --write ./**/*.{ts,tsx}", "lint": "eslint . --ext .ts,.tsx --cache", "lint:fix": "yarn lint --fix", "coverage": "jest --coverage", - "test": "jest" + "test": "jest && tsc --noEmit -p test" }, "husky": { "hooks": { diff --git a/tsconfig.json b/tsconfig.json index b48f0e879..40ea2c133 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -23,7 +23,8 @@ "swr/immutable": ["./immutable/index.ts"], "swr/mutation": ["./mutation/index.ts"] }, - "typeRoots": ["./node_modules/@types"] + "typeRoots": ["./node_modules/@types"], + "incremental": true }, "include": ["core"], "exclude": ["./**/dist", "node_modules", "jest.config.js"],