From 5b3dfb4b49b818b7c8493dad1f0a8846185fd917 Mon Sep 17 00:00:00 2001 From: "CanbiZ (MickLesk)" <47820557+MickLesk@users.noreply.github.com> Date: Mon, 9 Mar 2026 08:33:28 +0100 Subject: [PATCH] add clean_install --- ct/reactive-resume.sh | 4 ++-- install/reactive-resume-install.sh | 10 +++++++--- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/ct/reactive-resume.sh b/ct/reactive-resume.sh index 9d8cd9290..fbde8ba69 100644 --- a/ct/reactive-resume.sh +++ b/ct/reactive-resume.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func) # Copyright (c) 2021-2026 community-scripts ORG -# Author: vhsdream | Rewrite: MickLesk (CanbiZ) +# Author: vhsdream | MickLesk (CanbiZ) # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://rxresume.org | Github: https://github.com/amruthpillai/reactive-resume @@ -34,7 +34,7 @@ function update_script() { msg_ok "Stopped services" cp /opt/reactive-resume/.env /opt/reactive-resume.env.bak - fetch_and_deploy_gh_release "reactive-resume" "amruthpillai/reactive-resume" "tarball" "latest" "/opt/reactive-resume" + CLEAN_INSTALL=1 fetch_and_deploy_gh_release "reactive-resume" "amruthpillai/reactive-resume" "tarball" "latest" "/opt/reactive-resume" msg_info "Updating Reactive Resume (Patience)" cd /opt/reactive-resume diff --git a/install/reactive-resume-install.sh b/install/reactive-resume-install.sh index c5db14c8a..dc77cc9be 100644 --- a/install/reactive-resume-install.sh +++ b/install/reactive-resume-install.sh @@ -15,7 +15,7 @@ update_os PG_VERSION="16" setup_postgresql PG_DB_NAME="reactive_resume" PG_DB_USER="reactive_resume" setup_postgresql_db -NODE_VERSION="24" NODE_MODULE="pnpm@latest" setup_nodejs +NODE_VERSION="22" NODE_MODULE="pnpm@latest" setup_nodejs msg_info "Installing Dependencies" $STD apt install -y chromium @@ -25,10 +25,14 @@ fetch_and_deploy_gh_release "reactive-resume" "amruthpillai/reactive-resume" "ta msg_info "Building Reactive Resume (Patience)" cd /opt/reactive-resume -export NODE_ENV="production" export CI="true" -$STD pnpm install --frozen-lockfile +rm -f pnpm-lock.yaml +$STD pnpm install $STD pnpm run build +# Workaround: Vite/Rolldown bundles tslib CJS→ESM with broken .default destructure +# see https://github.com/amruthpillai/reactive-resume/issues/2773 +find .output/server -name '*.mjs' -exec \ + sed -i 's/__toESM(require_tslib())).default/__toESM(require_tslib()))/g' {} + mkdir -p /opt/reactive-resume/data msg_ok "Built Reactive Resume"