mirror of
https://github.com/sp-tarkov/server.git
synced 2025-02-13 02:50:44 -05:00
Type Check Before Debug
This updates the npm debug command to type check before executing the run entry. If the check fails the debug will not continue.
This commit is contained in:
parent
4ca19b73f7
commit
c5277177c3
@ -30,11 +30,10 @@
|
||||
{
|
||||
"name": "Debug",
|
||||
"type": "node",
|
||||
"program": "${workspaceFolder}/src/entry/run.ts",
|
||||
"runtimeVersion": "22.12.0",
|
||||
"runtimeExecutable": "tsx",
|
||||
"runtimeExecutable": "npm",
|
||||
"request": "launch",
|
||||
"runtimeArgs": ["watch", "--clear-screen=false"],
|
||||
"runtimeArgs": ["run", "run:debug"],
|
||||
"console": "integratedTerminal",
|
||||
"internalConsoleOptions": "neverOpen",
|
||||
"skipFiles": ["<node_internals>/**", "${workspaceFolder}/node_modules/**"]
|
||||
|
@ -14,7 +14,6 @@
|
||||
"check:circular": "madge --circular --ts-config tsconfig.json --extensions ts ./src/",
|
||||
"lint": "npx @biomejs/biome lint ./",
|
||||
"lint:fix": "npx @biomejs/biome lint --write ./",
|
||||
"lint:types": "tsc --noEmit",
|
||||
"style": "npx @biomejs/biome format ./",
|
||||
"style:fix": "npx @biomejs/biome format --write ./",
|
||||
"format": "npx @biomejs/biome check --write ./",
|
||||
@ -27,8 +26,9 @@
|
||||
"build:bleeding": "cross-env PKG_CACHE_PATH=\"./.pkg-cache\" gulp build:bleeding",
|
||||
"build:bleedingmods": "cross-env PKG_CACHE_PATH=\"./.pkg-cache\" gulp build:bleedingmods",
|
||||
"run:build": "gulp run:build",
|
||||
"run:debug": "tsx ./src/entry/run.ts",
|
||||
"run:debug": "npm run type-check && tsx ./src/entry/run.ts",
|
||||
"run:profiler": "gulp run:profiler",
|
||||
"type-check": "tsc -p tsconfig.debug.json",
|
||||
"gen:types": "tsc -p tsconfig.types.json",
|
||||
"gen:docs": "typedoc --options ./typedoc.json --entryPointStrategy expand ./src",
|
||||
"gen:items": "tsx ./src/tools/ItemTplGenerator/ItemTplGeneratorProgram.ts",
|
||||
|
8
project/tsconfig.debug.json
Normal file
8
project/tsconfig.debug.json
Normal file
@ -0,0 +1,8 @@
|
||||
{
|
||||
"extends": "./tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"strict": false,
|
||||
"noEmit": true
|
||||
},
|
||||
"exclude": ["./types/**/*"]
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user