Open Source Web Application Framework for ASP.NET Core
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

15 lines
560 B

Get-ChildItem -Recurse -Filter package.json -ErrorAction SilentlyContinue |
Where-Object { $_.FullName -notmatch '\\node_modules\\' } |
ForEach-Object {
Write-Host "🔍 Checking $($_.FullName)" -ForegroundColor Cyan
Push-Location $_.DirectoryName
try {
npx npm-check-updates
}
catch {
Write-Host "⚠️ Error running ncu in $($_.DirectoryName)" -ForegroundColor Red
}
Pop-Location
}
Write-Host "`n✅ All package.json files have been checked." -ForegroundColor Green