diff --git a/index.js b/index.js index b3cc4fada6c554706d5dc7c92990482ff2765695..04d2161cbd2d92c743f464e3ae1695f385768cfb 100644 --- a/index.js +++ b/index.js @@ -65,7 +65,7 @@ module.exports.statics = { /** * Creates a new stack pre-registered with compliant modules found in package.json */ - autoStack: () => { + autoStack: (priorityModules) => { const pjson = require('./package.json'); const duniterModules = []; @@ -84,7 +84,7 @@ module.exports.statics = { } // The final stack - return new Stack(PRODUCTION_DEPENDENCIES.concat(duniterModules)); + return new Stack((priorityModules || []).concat(PRODUCTION_DEPENDENCIES).concat(duniterModules)); } };