mirror of
https://github.com/aspnet/JavaScriptServices.git
synced 2025-12-22 17:47:53 +00:00
29 lines
484 B
PowerShell
29 lines
484 B
PowerShell
[cmdletbinding(SupportsShouldProcess = $true)]
|
|
param(
|
|
)
|
|
|
|
$ErrorActionPreference = 'Stop'
|
|
Set-StrictMode -Version 2
|
|
|
|
Push-Location "src"
|
|
try {
|
|
$dirs = Get-ChildItem -Directory
|
|
foreach($dir in $dirs)
|
|
{
|
|
Push-Location $dir
|
|
try{
|
|
if(Test-Path -Path "package.json")
|
|
{
|
|
npm install
|
|
npm run build
|
|
}
|
|
}
|
|
finally{
|
|
Pop-Location
|
|
}
|
|
}
|
|
}
|
|
finally {
|
|
Pop-Location
|
|
}
|