diff --git a/changelog.md b/changelog.md index de501c2..02e0760 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,11 @@ # Changelog +## 2026-03-15 - 1.13.2 - fix(scripts) +install production dependencies before compiling binaries and exclude local node_modules from builds + +- Adds a dependency installation step using the application entrypoint before cross-platform compilation +- Updates all deno compile targets to use --node-modules-dir=none to avoid bundling local node_modules + ## 2026-03-15 - 1.13.1 - fix(deno) remove nodeModulesDir from Deno configuration diff --git a/scripts/compile-all.sh b/scripts/compile-all.sh index 07f84fe..a82a805 100755 --- a/scripts/compile-all.sh +++ b/scripts/compile-all.sh @@ -8,36 +8,40 @@ set -e VERSION=$(grep '"version"' deno.json | cut -d'"' -f4) echo "Compiling Onebox v${VERSION} for all platforms..." +# Install only transitively imported dependencies (skips devDependencies from package.json) +echo "Installing production dependencies..." +deno install --entrypoint mod.ts + # Create dist directory mkdir -p dist/binaries -# Compile for each platform +# Compile for each platform (--node-modules-dir=none avoids bundling local node_modules) echo "Compiling for Linux x64..." -deno compile --allow-all --no-check \ +deno compile --allow-all --no-check --node-modules-dir=none \ --output "dist/binaries/onebox-linux-x64" \ --target x86_64-unknown-linux-gnu \ mod.ts echo "Compiling for Linux ARM64..." -deno compile --allow-all --no-check \ +deno compile --allow-all --no-check --node-modules-dir=none \ --output "dist/binaries/onebox-linux-arm64" \ --target aarch64-unknown-linux-gnu \ mod.ts echo "Compiling for macOS x64..." -deno compile --allow-all --no-check \ +deno compile --allow-all --no-check --node-modules-dir=none \ --output "dist/binaries/onebox-macos-x64" \ --target x86_64-apple-darwin \ mod.ts echo "Compiling for macOS ARM64..." -deno compile --allow-all --no-check \ +deno compile --allow-all --no-check --node-modules-dir=none \ --output "dist/binaries/onebox-macos-arm64" \ --target aarch64-apple-darwin \ mod.ts echo "Compiling for Windows x64..." -deno compile --allow-all --no-check \ +deno compile --allow-all --no-check --node-modules-dir=none \ --output "dist/binaries/onebox-windows-x64.exe" \ --target x86_64-pc-windows-msvc \ mod.ts diff --git a/ts/00_commitinfo_data.ts b/ts/00_commitinfo_data.ts index fc957d7..8e3dddc 100644 --- a/ts/00_commitinfo_data.ts +++ b/ts/00_commitinfo_data.ts @@ -3,6 +3,6 @@ */ export const commitinfo = { name: '@serve.zone/onebox', - version: '1.13.1', + version: '1.13.2', description: 'Self-hosted container platform with automatic SSL and DNS - a mini Heroku for single servers' } diff --git a/ts_web/00_commitinfo_data.ts b/ts_web/00_commitinfo_data.ts index fc957d7..8e3dddc 100644 --- a/ts_web/00_commitinfo_data.ts +++ b/ts_web/00_commitinfo_data.ts @@ -3,6 +3,6 @@ */ export const commitinfo = { name: '@serve.zone/onebox', - version: '1.13.1', + version: '1.13.2', description: 'Self-hosted container platform with automatic SSL and DNS - a mini Heroku for single servers' }