diff --git a/index.js b/index.js index fe5417b..44f6595 100644 --- a/index.js +++ b/index.js @@ -1,4 +1,9 @@ -module.exports = ({appdir}) => { +module.exports = ({appdir: originalAppDir = ''}) => { + + // if the kernel is instantiated in a windows environment, the appdir will contain backslashes + // correct this by replacing all backslashes with forward slashes + const appdir = originalAppDir.replace(/\\/g, '/'); + const fs = require('fs'); const path = require('path'); const glob = require('glob');