From 28e4335c998f2ea7b51aa1c09d00a0d4c722b78c Mon Sep 17 00:00:00 2001 From: Johannes Millan Date: Fri, 23 Jan 2026 19:54:14 +0100 Subject: [PATCH] fix(plugins): add missing automations plugin to build script MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The automations plugin was missing from the build-all.js script, causing its manifest.json to not be copied to src/assets/bundled-plugins/. This resulted in 404 errors during E2E tests (6 per test × ~199 tests = ~1,194 404s total) because plugin.service.ts tries to load all 6 bundled plugins but only 5 were being built. Added automations plugin configuration to build-all.js with the same pattern as other bundled plugins (build + copy dist files to assets). Fixes: 1,146 console 404 errors in E2E test runs Related: plugin.service.ts lines 93-156 (_discoverBuiltInPlugins) --- packages/plugin-dev/scripts/build-all.js | 27 ++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/packages/plugin-dev/scripts/build-all.js b/packages/plugin-dev/scripts/build-all.js index 1e4e67d05c..ea94904b08 100755 --- a/packages/plugin-dev/scripts/build-all.js +++ b/packages/plugin-dev/scripts/build-all.js @@ -186,6 +186,33 @@ const plugins = [ return 'Built and copied to assets'; }, }, + { + name: 'automations', + path: 'automations', + needsInstall: true, + copyToAssets: true, + buildCommand: async (pluginPath) => { + await execAsync(`cd ${pluginPath} && npm run build`); + // Copy to assets directory + const targetDir = path.join( + __dirname, + '../../../src/assets/bundled-plugins/automations', + ); + if (!fs.existsSync(targetDir)) { + fs.mkdirSync(targetDir, { recursive: true }); + } + const distPath = path.join(pluginPath, 'dist'); + if (fs.existsSync(distPath)) { + const files = fs.readdirSync(distPath); + for (const file of files) { + const src = path.join(distPath, file); + const dest = path.join(targetDir, file); + copyRecursive(src, dest); + } + } + return 'Built and copied to assets'; + }, + }, ]; async function buildPlugin(plugin) {