1

I've got two batch files that I want to call and let them close by themselves. In the first, I'm updating a package via npm and after updating, it should pack a vsix extension. The Problem: after calling npm, the whole rest of the batch-file is ignored. Does anybody have a workaround for this?

First file:

@echo off
start /wait nodejs.cmd|echo n>nul
tfx extension create --manifest-globs src\vss-extension.json

Second file (nodejs.cmd):

npm i -g tfx-cli
exit

Thanks in advance ☺

Greaka
  • 708
  • 9
  • 16

1 Answers1

1

npm is a cmd file.Try with:

call npm i -g tfx-cli
exit
Community
  • 1
  • 1
npocmaka
  • 51,748
  • 17
  • 123
  • 166