grafana / explore-logs

Repo for the Loki log exploration app
GNU Affero General Public License v3.0
308 stars 14 forks source link

Fix: tsc-files ignores tsconfig.json when called through husky hooks #867

Closed gtk-grafana closed 2 weeks ago

gtk-grafana commented 2 weeks ago

Problem: tsc-files is failing when called through husky hooks, unless custom.d.ts is included in the changed files, so my previous "fix" only worked once, for me, when committing that PR, but we started seeing the dang error again locally.

I verified that I can change things in typescript files now without tsc-files blowing up when called from husky hooks.

Reference: https://github.com/lint-staged/lint-staged/issues/825