Skip to content

Commit

Permalink
Merge pull request #158 from kaliber5/fix-plugins
Browse files Browse the repository at this point in the history
Fix plugins path
  • Loading branch information
simonihmig authored Feb 20, 2021
2 parents b45d01b + 0bef2fa commit 8b193e5
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,10 +187,12 @@ module.exports = {
},

initPlugins() {
walk('lib/plugins', { globs: ['*.js'] }).forEach((file) => {
const Plugin = require(`./lib/plugins/${file}`);
this.plugins.push(new Plugin(this));
});
walk(path.join(__dirname, 'lib/plugins'), { globs: ['*.js'] }).forEach(
(file) => {
const Plugin = require(`./lib/plugins/${file}`);
this.plugins.push(new Plugin(this));
}
);
},

validateConfigItem(config) {
Expand Down

0 comments on commit 8b193e5

Please sign in to comment.