Wednesday, October 4, 2023

My VSCode TypeScript prototyping setup

 .vscode/launch.json

{
// 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": [
{
"type": "node",
"request": "launch",
"name": "Debug TS",
"program": "${workspaceFolder}/index.ts",
"preLaunchTask": "tsc: build - tsconfig.json",
"outFiles": ["${workspaceFolder}/out/**/*.js"]
}
]
}

tsconfig.json

{
"compilerOptions": {
"target": "ES2022",
"module": "commonjs",
"outDir": "out",
"sourceMap": true
}
}