Added support for plugin relative imports

This commit is contained in:
Wyatt Johnson
2017-04-03 13:02:32 -06:00
parent 9c806cb6e4
commit b5280b1221
4 changed files with 24 additions and 14 deletions
+3
View File
@@ -3,6 +3,9 @@ const path = require('path');
const resolve = require('resolve');
const debug = require('debug')('talk:plugins');
// Add support for require rewriting.
require('app-module-path').addPath(__dirname);
let plugins = {};
// Try to parse the plugins.json file, logging out an error if the plugins.json