diff options
author | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2022-03-06 17:18:35 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-06 09:18:35 +0300 |
commit | 6bcd9e8baacc9493845a914afe50b9ac1b19720d (patch) | |
tree | a154da08664725cf41d9df01f82ab3867c39d517 /bundle/.vscode | |
parent | document which field is which (diff) | |
download | server-6bcd9e8baacc9493845a914afe50b9ac1b19720d.tar.xz |
Tsnode support (#580)
* ts-node support. debugging is slightly wonky as vscode will not allow breakpoints in modules that aren't bundle, yet. * apparently ts-node compilerOptions.path wasn't needed? on windows I could've sworn it was. * Cleaned up tsconfig.json a bit ( moved tsnode config to own file ). Fixed breakpoints for all modules under tsnode * Removed Microsoft Corp advert * Remove one more Microsoft Corp. ad Signed-off-by: Erkin Alp Güney <erkinalp9035@gmail.com> * Added `tsnode` npm script * Added `typescript-cached-transpile` package to help improve performance Co-authored-by: Erkin Alp Güney <erkinalp9035@gmail.com>
Diffstat (limited to 'bundle/.vscode')
-rw-r--r-- | bundle/.vscode/launch.json | 53 |
1 files changed, 35 insertions, 18 deletions
diff --git a/bundle/.vscode/launch.json b/bundle/.vscode/launch.json index aa4e743a..d7129ed8 100644 --- a/bundle/.vscode/launch.json +++ b/bundle/.vscode/launch.json @@ -1,18 +1,35 @@ -{ - // Use IntelliSense to learn about possible attributes. - // Hover to view descriptions of existing attributes. - // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 - "version": "0.2.0", - "configurations": [ - { - "sourceMaps": true, - "type": "node", - "request": "launch", - "name": "Launch Server", - "program": "${workspaceFolder}/dist/bundle/src/start.js", - "preLaunchTask": "tsc: build - tsconfig.json", - "outFiles": ["${workspaceFolder}/dist/**/*.js"], - "envFile": "${workspaceFolder}/.env" - } - ] -} +{ + "version": "0.2.0", + "configurations": [ + { + "sourceMaps": true, + "name": "ts-node", + "type": "node", + "request": "launch", + "args": [ + "${workspaceFolder}/src/start.ts" + ], + "runtimeArgs": [ + "-r", + "ts-node/register" + ], + "protocol": "inspector", + "internalConsoleOptions": "openOnSessionStart", + "env": { + "TS_NODE_PROJECT": "${workspaceFolder}/tsnode.tsconfig.json", + "TS_NODE_COMPILER": "typescript-cached-transpile" + }, + "resolveSourceMapLocations": null, /* allow breakpoints in modules other than bundle */ + }, + { + "sourceMaps": true, + "type": "node", + "request": "launch", + "name": "Launch Server", + "program": "${workspaceFolder}/dist/bundle/src/start.js", + "preLaunchTask": "tsc: build - tsconfig.json", + "outFiles": ["${workspaceFolder}/dist/**/*.js"], + "envFile": "${workspaceFolder}/.env", + } + ] +} |