mirror of
https://github.com/status-im/embark-area-51.git
synced 2025-01-11 06:25:57 +00:00
refactor pluginPath
This commit is contained in:
parent
e0e3887aaf
commit
b34ddf32cf
@ -54,7 +54,7 @@ Plugins.prototype.createPlugin = function(pluginName, pluginConfig) {
|
||||
};
|
||||
|
||||
Plugins.prototype.loadInternalPlugin = function(pluginName, pluginConfig) {
|
||||
var pluginPath = utils.joinPath('../modules/', pluginName, 'index.js');
|
||||
var pluginPath = fs.embarkPath('lib/modules/' + pluginName);
|
||||
var plugin = require(pluginPath);
|
||||
|
||||
var pluginWrapper = new Plugin({
|
||||
@ -62,7 +62,7 @@ Plugins.prototype.loadInternalPlugin = function(pluginName, pluginConfig) {
|
||||
pluginModule: plugin,
|
||||
pluginConfig: pluginConfig || {},
|
||||
logger: this.logger,
|
||||
pluginPath: fs.embarkPath('lib/modules/' + pluginName),
|
||||
pluginPath: pluginPath,
|
||||
interceptLogs: this.interceptLogs,
|
||||
events: this.events,
|
||||
config: this.config,
|
||||
|
Loading…
x
Reference in New Issue
Block a user