fix: use npx for TypeScript commands in build scripts

- Update build script to use 'npx tsc' instead of 'tsc'
- Update typecheck script to use 'npx tsc' instead of 'tsc'
- Resolves issue where tsc command is not found on Windows 11
- Ensures TypeScript runs from local node_modules without requiring global installation

Co-authored-by: asyouplz <asyouplz@users.noreply.github.com>
This commit is contained in:
claude[bot] 2025-08-29 06:59:28 +00:00
parent 2df210e9a4
commit fca681a3d6

View file

@ -5,7 +5,7 @@
"main": "main.js",
"scripts": {
"dev": "node esbuild.config.mjs",
"build": "tsc -noEmit -skipLibCheck && node esbuild.config.mjs production",
"build": "npx tsc -noEmit -skipLibCheck && node esbuild.config.mjs production",
"lint": "eslint src/**/*.ts",
"lint:fix": "eslint src/**/*.ts --fix",
"format": "prettier --write 'src/**/*.{ts,tsx}'",
@ -29,7 +29,7 @@
"version": "node version-bump.mjs && git add manifest.json versions.json",
"clean": "rm -rf main.js main.js.map coverage .jest-cache",
"clean:all": "npm run clean && rm -rf node_modules",
"typecheck": "tsc -noEmit",
"typecheck": "npx tsc -noEmit",
"validate": "npm run lint && npm run typecheck && npm run test",
"ci": "npm run validate && npm run build"
},