sparse-intern-71089
09/12/2019, 5:01 PMbetter-rainbow-14549
09/12/2019, 5:21 PMflat-guitar-86436
09/12/2019, 5:52 PMbetter-rainbow-14549
09/12/2019, 5:53 PMflat-guitar-86436
09/12/2019, 6:04 PMflat-guitar-86436
09/12/2019, 6:04 PMbetter-rainbow-14549
09/12/2019, 6:06 PMclever-sunset-76585
09/12/2019, 6:42 PMoh, so like a node app?Yes, for JS and TS. Here’s an example from a recent personal project of mine: https://github.com/praneetloke/GarageDoorMonitor/blob/master/infrastructure/projectBuilder.ts. I am invoking
dotnet publish
, though I am doing it using the synchronous version of spawn
. I am doing that because the async version only accepts a callback and not async/await, which would have required me to create a promise and manually resolve/reject the promise. I didn’t want to do all that, but you could if you wanted to. I also think synchronous exec is fine here.flat-guitar-86436
09/12/2019, 7:12 PM