We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 67ea1f2 commit 65d7978Copy full SHA for 65d7978
linters/node/types.sh
@@ -33,9 +33,13 @@ main() {
33
npm run typecheck
34
elif [[ -f "package.json" ]] && grep -q '"type-check"' package.json 2>/dev/null; then
35
npm run type-check
36
+ elif [[ -x "node_modules/.bin/tsc" ]]; then
37
+ # Use locally installed tsc
38
+ node_modules/.bin/tsc --noEmit
39
else
- # Fallback to direct tsc command
- npx tsc --noEmit
40
+ # Fallback: use npx with explicit typescript package
41
+ # Note: 'npx tsc' alone would install wrong package (deprecated 'tsc' not 'typescript')
42
+ npx -p typescript tsc --noEmit
43
fi
44
45
if [[ $? -eq 0 ]]; then
0 commit comments