Currently, I am working on a project using Typescript, nodeJS, and VS Code.
When it comes to debugging in VS Code, I have set up configurations in my launch.json
file.
{
"type": "node",
"request": "launch",
"name": "Launch via NPM",
"runtimeExecutable": "npm",
"runtimeArgs": [
"run-script",
"debug"
],
"port": 9229
},
I am wondering if there is a way to run a batch file before starting the service. In a regular console, I would normally do this by running:
env.cmd
npm start