build: resolve esbuild binary from pnpm store in build-deb.sh
This commit is contained in:
@@ -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 \
|
||||
|
||||
Reference in New Issue
Block a user