diff --git a/src/utils.js b/src/utils.js index d5e24e1..9f448e3 100644 --- a/src/utils.js +++ b/src/utils.js @@ -86,7 +86,7 @@ function generateQuestions(config = {}, questions = {}) { function createListOfDirectories(prev, dir) { return { ...prev, - [dir.split('/').pop()]: dir, + [dir.split(path.sep).pop()]: dir, } }