build: add local node bin to restart script PATH

This commit is contained in:
Peter Steinberger
2025-12-07 18:49:55 +01:00
parent 558af7a454
commit d463c82c95
31 changed files with 2089 additions and 1851 deletions

View File

@@ -119,7 +119,10 @@ pnpm install \
--config.shared-workspace-lockfile=false \
--lockfile-dir "$ROOT_DIR" \
--dir "$TMP_DEPLOY"
rsync -aL "$TMP_DEPLOY/node_modules" "$RELAY_DIR/"
PNPM_STORE_DIR="$TMP_DEPLOY/.pnpm-store" \
PNPM_HOME="$HOME/Library/pnpm" \
pnpm rebuild sharp --config.ignore-workspace-root-check=true --dir "$TMP_DEPLOY"
rsync -aL "$TMP_DEPLOY/node_modules/" "$RELAY_DIR/node_modules/"
rm -rf "$TMP_DEPLOY"
if [ -f "$CLI_BIN" ]; then

View File

@@ -14,6 +14,9 @@ LAUNCH_AGENT="${HOME}/Library/LaunchAgents/com.steipete.clawdis.plist"
log() { printf '%s\n' "$*"; }
fail() { printf 'ERROR: %s\n' "$*" >&2; exit 1; }
# Ensure local node binaries (rolldown, tsc, pnpm) are discoverable for the steps below.
export PATH="${ROOT_DIR}/node_modules/.bin:${PATH}"
run_step() {
local label="$1"; shift
log "==> ${label}"