Skip to content

Instantly share code, notes, and snippets.

@vanduc1102
Created May 16, 2024 05:40
Show Gist options
  • Save vanduc1102/a5d27eab09b065e1e337ceeb16ce1ea3 to your computer and use it in GitHub Desktop.
Save vanduc1102/a5d27eab09b065e1e337ceeb16ce1ea3 to your computer and use it in GitHub Desktop.
vscode launch.json for npm workspaces , apps/__all _app , packages/__ all packages __
{
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Launch Current TS file",
"runtimeArgs": ["-r", "ts-node/register"],
"args": ["${file}"]
},
{
"type": "node",
"request": "launch",
"name": "Launch Import Excels",
"runtimeArgs": ["-r", "ts-node/register"],
"cwd": "${workspaceFolder}/apps/shop-api",
"args": "${workspaceFolder}/apps/shop-api/import.ts"
},
{
"type": "node",
"request": "launch",
"name": "shop api",
"runtimeArgs": ["-r", "ts-node/register"],
"cwd": "${workspaceFolder}/apps/shop-api",
"program": "${workspaceFolder}/apps/shop-api/src/server.ts"
},
{
"name": "shop web",
"type": "node",
"request": "launch",
"cwd": "${workspaceFolder}/apps/shop-web",
"program": "${workspaceFolder}/node_modules/.bin/next",
"runtimeArgs": ["--inspect"]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment