Skip to content

Commit b9471dc

Browse files
VIA-836 SP/DB Use local typescript module for tsc precommit type checking
1 parent f431494 commit b9471dc

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

.github/workflows/stage-1-commit.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,9 +148,7 @@ jobs:
148148
npm ci --strict-peer-deps
149149
- name: "Check types with tsc"
150150
run: |
151-
which tsc
152-
tsc --version
153-
tsc --noEmit
151+
npx tsc --noEmit
154152
- name: "Run linting check"
155153
run: |
156154
make test-lint

scripts/config/pre-commit.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ repos:
33
hooks:
44
- id: check-types
55
name: Check types with tsc
6-
entry: tsc --noEmit
6+
entry: npx tsc --noEmit
77
language: system
88
pass_filenames: false
99
- id: run-prettier

0 commit comments

Comments
 (0)