Files
alexa-malayalam-calendar/scripts/build.ps1
T

16 lines
590 B
PowerShell

$ProjectRoot = (Resolve-Path "$PSScriptRoot\..").Path
$DistPath = Join-Path -Path $ProjectRoot -ChildPath "dist"
$ZipPath = Join-Path -Path $DistPath -ChildPath "bundle.zip"
if (Test-Path -Path $DistPath) {
Remove-Item -Path $DistPath -Recurse -Force
}
New-Item -ItemType Directory -Path $DistPath | Out-Null
Write-Host "Packaging skill into $ZipPath..." -ForegroundColor Cyan
Set-Location -Path $ProjectRoot
Compress-Archive -Path "src", "node_modules", "package.json" -DestinationPath $ZipPath -Force
Write-Host "Build complete. Bundle created at $ZipPath" -ForegroundColor Green