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.
This commit is contained in:
CanbiZ (MickLesk)
2026-01-21 13:07:20 +01:00
parent fe2384a2fa
commit 7395a44277
3 changed files with 2 additions and 1 deletions

View File

@@ -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"

View File

@@ -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 <<EOF >/opt/joplin-server/.env
PM2_HOME=/opt/pm2

View File

@@ -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]}"