prefer fs.dappPath

This commit is contained in:
Michael Bradley, Jr 2018-08-17 12:41:39 -05:00
parent 8be1090a44
commit f0f95554a5
1 changed files with 1 additions and 2 deletions

View File

@ -1,6 +1,5 @@
const async = require('async'); const async = require('async');
var Plugin = require('./plugin.js'); var Plugin = require('./plugin.js');
var utils = require('../utils/utils.js');
var fs = require('../core/fs.js'); var fs = require('../core/fs.js');
var Plugins = function(options) { var Plugins = function(options) {
@ -75,7 +74,7 @@ Plugins.prototype.loadInternalPlugin = function(pluginName, pluginConfig) {
}; };
Plugins.prototype.loadPlugin = function(pluginName, pluginConfig) { Plugins.prototype.loadPlugin = function(pluginName, pluginConfig) {
var pluginPath = utils.joinPath(utils.pwd(), 'node_modules', pluginName); var pluginPath = fs.dappPath('node_modules', pluginName);
var plugin = require(pluginPath); var plugin = require(pluginPath);
var pluginWrapper = new Plugin({ var pluginWrapper = new Plugin({