From f52b0553506c85d7992450a87c36950cf83355c0 Mon Sep 17 00:00:00 2001 From: MickLesk Date: Tue, 19 May 2026 09:46:37 +0200 Subject: [PATCH] fix(reactive-resume): use shamefully-hoist to expose pnpm externals Replace the broken npm-install workaround with a simpler approach: write shamefully-hoist=true to .npmrc before pnpm install. This causes pnpm to hoist all packages to root node_modules/, including bcrypt, sharp, linkedom etc. (deps of @reactive-resume/runtime-externals), making them resolvable by the Nitro server at runtime. The upstream repo has no .npmrc, so git reset --hard leaves this file untouched on updates. The file is written before each pnpm install in both install and update scripts to ensure it is always in place. --- ct/reactive-resume.sh | 5 +---- install/reactive-resume-install.sh | 5 +---- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/ct/reactive-resume.sh b/ct/reactive-resume.sh index 623286a42..9d6561f2b 100644 --- a/ct/reactive-resume.sh +++ b/ct/reactive-resume.sh @@ -46,12 +46,9 @@ function update_script() { corepack prepare --activate export CI="true" export NODE_ENV="production" + printf 'shamefully-hoist=true\n' >/opt/reactive-resume/.npmrc $STD pnpm install --frozen-lockfile $STD pnpm run build - msg_info "Installing Nitro Runtime Externals" - cd /opt/reactive-resume/apps/web - $STD npm install --no-save --no-package-lock bcrypt sharp linkedom - cd /opt/reactive-resume mv /opt/reactive-resume.env.bak /opt/reactive-resume/.env msg_ok "Updated Reactive Resume" diff --git a/install/reactive-resume-install.sh b/install/reactive-resume-install.sh index 5c79110d9..a54d35764 100644 --- a/install/reactive-resume-install.sh +++ b/install/reactive-resume-install.sh @@ -32,12 +32,9 @@ corepack enable corepack prepare --activate export NODE_ENV="production" export CI="true" +printf 'shamefully-hoist=true\n' >/opt/reactive-resume/.npmrc $STD pnpm install --frozen-lockfile $STD pnpm run build -msg_info "Installing Nitro Runtime Externals" -cd /opt/reactive-resume/apps/web -$STD npm install --no-save --no-package-lock bcrypt sharp linkedom -cd /opt/reactive-resume mkdir -p /opt/reactive-resume/data msg_ok "Built Reactive Resume"