build: add local node bin to restart script PATH
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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}"
|
||||
|
||||
Reference in New Issue
Block a user