0

I am new to node.js and typescript, and I was wondering whether there is any way to run those two commands at the same time with the click of a button or command on visual studio code.

Thank you

stefan
  • 47
  • 6

1 Answers1

1

You can execute a command via a click by clicking on the "npm scripts" tab shown on your left hand side (default)

npm scripts

If you want to execute multiple commands in single click you have to use something like concurrently

open you package.json and edit script

"script" : {
  "my-script": "concurrently \"tsc-watch\" \"npm start\""
}
CharukaHS
  • 561
  • 1
  • 5
  • 16