Merge pull request #692 from clusterio/plugin-management

Add plugins automatically
This commit is contained in:
Daniel authored and GitHub committed 2024-11-29 20:18:42 +00:00
commit 98a15d3366
20 files changed
+350 -32

No files matched your search

+1 -8
View File
@@ -317,14 +317,7 @@ async function initialize(): Promise<InitializeParameters> {
}
logger.info(`Loading available plugins from ${args.pluginList}`);
let pluginList = new Map();
try {
pluginList = new Map(JSON.parse(await fs.readFile(args.pluginList, { encoding: "utf8" })));
} catch (err: any) {
if (err.code !== "ENOENT") {
throw err;
}
}
let pluginList = await lib.loadPluginList(args.pluginList);
// If the command is plugin management we don't try to load plugins
if (command === "plugin") {
+1
View File
@@ -13,6 +13,7 @@
"clusteriocontroller": "./dist/node/controller.js"
},
"keywords": [
"clusterio",
"factorio"
],
"engines": {