build: resolve esbuild binary from pnpm store in build-deb.sh

This commit is contained in:
Schwitzz
2026-10-30 13:03:31 -05:00
parent 77576e2982
commit 0f13ed39b4
+2 -1
View File
@@ -38,7 +38,8 @@ EOF
# Bundle server TypeScript + Fastify + @pubscript/core into a single ESM file,
# keeping only native addons (better-sqlite3, argon2) external.
./apps/web/node_modules/.bin/esbuild server/src/index.ts \
ESBUILD_BIN="$(find "$ROOT_DIR/node_modules/.pnpm" -path '*/esbuild/bin/esbuild' -type f | head -n 1)"
"$ESBUILD_BIN" server/src/index.ts \
--bundle \
--platform=node \
--target=node22 \