@helyx/cli 1.5.0 → 1.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,13 @@
1
+ param(
2
+ [Parameter(ValueFromRemainingArguments = $true)]
3
+ [string[]]$BuilderArguments
4
+ )
5
+
6
+ $ErrorActionPreference = 'Stop'
7
+ if (-not (Get-Command node -ErrorAction SilentlyContinue)) {
8
+ Write-Error 'Node.js 24 or newer is required. Install Node.js and run this file again.'
9
+ exit 1
10
+ }
11
+
12
+ & node (Join-Path $PSScriptRoot 'env-builder.mjs') @BuilderArguments
13
+ exit $LASTEXITCODE
@@ -0,0 +1,10 @@
1
+ #!/bin/sh
2
+ set -eu
3
+
4
+ if ! command -v node >/dev/null 2>&1; then
5
+ printf '%s\n' 'Node.js 24 or newer is required. Install Node.js and run this file again.' >&2
6
+ exit 1
7
+ fi
8
+
9
+ builder_directory=$(CDPATH= cd -P "$(dirname "$0")" && pwd)
10
+ exec node "$builder_directory/env-builder.mjs" "$@"