diff --git a/methods/library.js b/methods/library.js index ebf430e..832144f 100644 --- a/methods/library.js +++ b/methods/library.js @@ -1,5 +1,13 @@ -const importFresh = require('import-fresh'); +var fs = require('fs'); + +if (fs.existsSync(path.join(process.cwd() + "/npm"))) { + var rootModules = path.join(process.cwd() + '/npm/node_modules/') +} else{ + var rootModules = '' +} + +const importFresh = require(rootModules+'import-fresh'); var filters = importFresh('./filters.js') var actions = importFresh('./actions.js')