Skip to content

Commit

Permalink
Cache Typescript runs for faster checks (home-assistant#19381)
Browse files Browse the repository at this point in the history
  • Loading branch information
steverep authored Jan 15, 2024
1 parent 920df03 commit 64b0b64
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 64b0b64

Please sign in to comment.