diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index f8cb948fef..5f2ece4fa7 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -67,7 +67,7 @@ jobs: - name: Check for localStorage Usage run: | chmod +x scripts/githooks/check-localstorage-usage.ts - tsx scripts/githooks/check-localstorage-usage.ts --scan-entire-repo + npx tsx scripts/githooks/check-localstorage-usage.ts --scan-entire-repo - name: Compare translation files run: | diff --git a/.lintstagedrc.json b/.lintstagedrc.json index 7d1e560449..d48c67cd6a 100644 --- a/.lintstagedrc.json +++ b/.lintstagedrc.json @@ -1,5 +1,5 @@ { "**/*.{ts,tsx,yml}": "eslint --fix", "**/*.{ts,tsx,json,scss,css,yml}": "prettier --write", - "**/*.{ts,tsx}": "tsx scripts/githooks/check-localstorage-usage.ts" + "**/*.{ts,tsx}": "npx tsx scripts/githooks/check-localstorage-usage.ts" }