From 7395a4427707377f9baaba2e7c75a187af8df7b7 Mon Sep 17 00:00:00 2001 From: "CanbiZ (MickLesk)" <47820557+MickLesk@users.noreply.github.com> Date: Wed, 21 Jan 2026 13:07:20 +0100 Subject: [PATCH] Run TypeScript compilation in Joplin Server scripts Added 'yarn run tsc' to both update and install scripts for Joplin Server to ensure TypeScript sources are compiled. Also removed an unused variable from build.func for code cleanup. --- ct/joplin-server.sh | 1 + install/joplin-server-install.sh | 1 + misc/build.func | 1 - 3 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ct/joplin-server.sh b/ct/joplin-server.sh index 317856bb9..3f3dce619 100644 --- a/ct/joplin-server.sh +++ b/ct/joplin-server.sh @@ -47,6 +47,7 @@ function update_script() { $STD yarn workspaces focus @joplin/server cd packages/server $STD yarn run build + $STD yarn run tsc msg_ok "Updated Joplin-Server" msg_info "Starting Services" diff --git a/install/joplin-server-install.sh b/install/joplin-server-install.sh index 1d671c62a..8de4a20a1 100644 --- a/install/joplin-server-install.sh +++ b/install/joplin-server-install.sh @@ -39,6 +39,7 @@ export BUILD_SEQUENCIAL=1 $STD yarn workspaces focus @joplin/server cd packages/server $STD yarn run build +$STD yarn run tsc cat </opt/joplin-server/.env PM2_HOME=/opt/pm2 diff --git a/misc/build.func b/misc/build.func index 1e6b3a3d4..0f796de72 100644 --- a/misc/build.func +++ b/misc/build.func @@ -4508,7 +4508,6 @@ create_lxc_container() { fi ONLINE_TEMPLATES=() - ONLINE_TEMPLATE="" mapfile -t ONLINE_TEMPLATES < <(pveam available -section system 2>/dev/null | grep -E '\.(tar\.zst|tar\.xz|tar\.gz)$' | awk '{print $2}' | grep -E "^${TEMPLATE_SEARCH}.*${TEMPLATE_PATTERN}" | sort -t - -k 2 -V 2>/dev/null || true) [[ ${#ONLINE_TEMPLATES[@]} -gt 0 ]] && ONLINE_TEMPLATE="${ONLINE_TEMPLATES[-1]}"