diff --git a/project/Server.code-workspace b/project/Server.code-workspace index fd11a4d5..884d36fd 100644 --- a/project/Server.code-workspace +++ b/project/Server.code-workspace @@ -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": ["/**", "${workspaceFolder}/node_modules/**"] diff --git a/project/package.json b/project/package.json index cee6f54d..4b652d6c 100644 --- a/project/package.json +++ b/project/package.json @@ -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", diff --git a/project/tsconfig.debug.json b/project/tsconfig.debug.json new file mode 100644 index 00000000..15cc9403 --- /dev/null +++ b/project/tsconfig.debug.json @@ -0,0 +1,8 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "strict": false, + "noEmit": true + }, + "exclude": ["./types/**/*"] +}