0
0
mirror of https://github.com/sp-tarkov/server.git synced 2025-02-12 21:50:43 -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:
Refringe 2025-01-07 19:33:28 -05:00
parent 4ca19b73f7
commit c5277177c3
Signed by: Refringe
SSH Key Fingerprint: SHA256:t865XsQpfTeqPRBMN2G6+N8wlDjkgUCZF3WGW6O9N/k
3 changed files with 12 additions and 5 deletions

View File

@ -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/**"]

View File

@ -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",

View File

@ -0,0 +1,8 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"strict": false,
"noEmit": true
},
"exclude": ["./types/**/*"]
}