From 96f48ca1020283cc20dc4a3f2f068e9318c95d88 Mon Sep 17 00:00:00 2001 From: Hornwitser Date: Sat, 20 Jan 2024 01:34:33 +0100 Subject: [PATCH] Fix installer breaking on setting up plugins The entrypoint of plugins were changed in 50f12c7 and b0f6c95 but the installer's loading of plugin info to get the correct plugin name was not updated for these changes. Update installer plugin loading to use the correct entrypoint. --- packages/create/create.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/create/create.js b/packages/create/create.js index 2ccfb8b7..7fcc62bc 100755 --- a/packages/create/create.js +++ b/packages/create/create.js @@ -374,7 +374,7 @@ async function installClusterio(mode, plugins) { for (let plugin of plugins) { if (!pluginList.has(plugin)) { // eslint-disable-next-line node/global-require - let pluginInfo = require(require.resolve(path.posix.join(plugin, "info"), { paths: [process.cwd()] })); + let pluginInfo = require(require.resolve(plugin, { paths: [process.cwd()] })).plugin; pluginList.set(pluginInfo.name, plugin); } }