mirror of
https://github.com/spacebarchat/server.git
synced 2024-11-06 19:02:33 +01:00
6bcd9e8baa
* 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>
36 lines
911 B
JSON
36 lines
911 B
JSON
{
|
|
"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",
|
|
}
|
|
]
|
|
}
|