mirror of
https://github.com/asyouplz/SpeechNote.git
synced 2026-07-22 16:30:31 +00:00
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:
parent
2df210e9a4
commit
fca681a3d6
1 changed files with 2 additions and 2 deletions
|
|
@ -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"
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue