# DBAOps Sovereign™ — Enterprise bundle (Windows convenience wrapper)
# Single source of truth: node scripts/package-enterprise-bundle.js (works on all OS).
# This script exists for teams that prefer PowerShell only.

param(
    [switch]$IncludeSource
)

$ErrorActionPreference = "Stop"
$root = (Get-Item $PSScriptRoot).Parent.FullName
Set-Location $root

$argsList = @("scripts/package-enterprise-bundle.js")
if ($IncludeSource) { $argsList += "--include-source" }

& node @argsList
