Add windows running

This commit is contained in:
Joey Yakimowich-Payne 2025-10-15 16:38:33 -06:00
commit a99e716ad2
No known key found for this signature in database
GPG key ID: 6BFE655FA5ABD1E1
3 changed files with 377 additions and 0 deletions

24
web/run.ps1 Normal file
View file

@ -0,0 +1,24 @@
[CmdletBinding()]
param(
[string]$Script = "dev",
[string[]]$Arguments
)
Set-StrictMode -Version 3.0
$ErrorActionPreference = "Stop"
Push-Location -LiteralPath $PSScriptRoot
try {
$pnpmArgs = @("run", $Script)
if ($Arguments) {
$pnpmArgs += "--"
$pnpmArgs += $Arguments
}
pnpm @pnpmArgs
}
finally {
Pop-Location
}