mirror of
https://github.com/ether/etherpad-lite.git
synced 2026-05-05 12:16:45 +02:00
* fix: use pnpm instead of npm in updatePlugins.sh The script used npm outdated which doesn't work with pnpm workspaces, and pnpm install which doesn't update existing packages. Changed to pnpm outdated and pnpm update respectively. Fixes #6670 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * fix: scope plugin updates to ep_etherpad-lite and exclude core package - Use --filter ep_etherpad-lite so pnpm operates on the right workspace - Exclude ep_etherpad-lite from the plugin list - Handle pnpm outdated exit codes correctly (returns 1 when outdated) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
14 lines
440 B
Bash
Executable File
14 lines
440 B
Bash
Executable File
#!/bin/sh
|
|
set -e
|
|
mydir=$(cd "${0%/*}" && pwd -P) || exit 1
|
|
cd "${mydir}"/..
|
|
outdated_raw=$(pnpm --filter ep_etherpad-lite outdated --depth=0 2>&1) || true
|
|
OUTDATED=$(printf '%s\n' "$outdated_raw" | awk '{print $1}' | grep '^ep_' | grep -v '^ep_etherpad-lite$') || true
|
|
if [ -z "$OUTDATED" ]; then
|
|
echo "All plugins are up-to-date"
|
|
exit 0
|
|
fi
|
|
set -- ${OUTDATED}
|
|
echo "Updating plugins: $*"
|
|
exec pnpm --filter ep_etherpad-lite update "$@"
|