From 09df1ce65f0d5f24f61e89e9e6a75b2bf177bd90 Mon Sep 17 00:00:00 2001 From: John McLear Date: Tue, 31 Mar 2026 10:26:48 +0100 Subject: [PATCH] Add pnpm update step to checkPlugin for dependency updates (#7404) Run pnpm update on plugins during autofix to bump all dependencies to their latest compatible versions, reducing dependabot noise and keeping plugins current. Co-authored-by: Claude Opus 4.6 (1M context) --- bin/plugins/checkPlugin.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bin/plugins/checkPlugin.ts b/bin/plugins/checkPlugin.ts index e2ca59d5e..9d81e8bca 100644 --- a/bin/plugins/checkPlugin.ts +++ b/bin/plugins/checkPlugin.ts @@ -403,6 +403,12 @@ log4js.configure({ logger.warn('Test files not found, please create tests. https://github.com/ether/etherpad-lite/wiki/Creating-a-plugin#writing-and-running-front-end-tests-for-your-plugin'); } + // Update all dependencies to their latest compatible versions. + if (autoFix) { + logger.info('Updating dependencies...'); + execSync('pnpm update', {cwd: `${pluginPath}/`, stdio: 'inherit'}); + } + // Install dependencies so we can run ESLint. This should also create or update package-lock.json // if autoFix is enabled. const npmInstall = `pnpm install`;