*Rename pluginFolder to pluginDir
This commit is contained in:
parent
5c8c4cc1dd
commit
5362d83af6
|
@ -31,7 +31,7 @@ config.inject({
|
|||
port: 8080,
|
||||
config: configLocation,
|
||||
logLevel: "info",
|
||||
pluginFolder: path.join(configDir, "plugins"),
|
||||
pluginDir: path.join(configDir, "plugins"),
|
||||
plugins: ["core"],
|
||||
ssl: true,
|
||||
});
|
||||
|
|
|
@ -39,7 +39,7 @@ export class PluginApiManager {
|
|||
|
||||
const paths = [];
|
||||
for (const modulePath of [`${moduleName}.js`, `${moduleName}.mjs`]) {
|
||||
const fullPath = path.join(config.get("plugin-folder"), modulePath);
|
||||
const fullPath = path.join(config.get("plugin-dir"), modulePath);
|
||||
if (fs.existsSync(fullPath)) {
|
||||
paths.push(fullPath);
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue