From 64b0b64468de223e23a02aaa540de85523e4addf Mon Sep 17 00:00:00 2001 From: Steve Repsher Date: Mon, 15 Jan 2024 09:36:26 -0500 Subject: [PATCH] Cache Typescript runs for faster checks (#19381) --- .github/workflows/ci.yaml | 1 + tsconfig.json | 3 +++ 2 files changed, 4 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 76a9563f80..744fa052fc 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -42,6 +42,7 @@ jobs: path: | node_modules/.cache/prettier node_modules/.cache/eslint + node_modules/.cache/typescript key: lint-${{ github.sha }} restore-keys: lint- - name: Run eslint diff --git a/tsconfig.json b/tsconfig.json index f54276cf0b..f0bada47d9 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -10,6 +10,9 @@ "resolveJsonModule": true, // Babel handles transpiling and no need for declaration files "noEmit": true, + // Caching + "incremental": true, + "tsBuildInfoFile": "node_modules/.cache/typescript/.tsbuildinfo", // Type checking options "noUnusedLocals": true, "noUnusedParameters": true,