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