-
-
Save stephaneerard/4bf876d5241a3217ed3ad92f66525b46 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $npm = @("config-lib", "config-api", "config-cli") | |
| $processes = [System.Collections.ArrayList]@() | |
| $location = get-location | |
| try { | |
| foreach ($package in $npm) { | |
| set-location $psscriptroot\..\src\$package | |
| $process = ./node_modules/.bin/tsc --watch & | |
| $processes.Add($process) | out-null | |
| } | |
| } | |
| finally { | |
| foreach($process in $processes){ | |
| do { Start-Sleep -Seconds 1 } until ($process.HasExited); | |
| $process | stop-job | |
| } | |
| set-location $location | |
| } | |
indented-automation
commented
Dec 14, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment