Skip to content

Commit efa0420

Browse files
author
Yonathan Benolol
committed
Using path.sep instea of '/' for multi platform support
1 parent e0e6286 commit efa0420

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/utils.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,9 @@ function generateQuestions(config = {}, questions = {}) {
8484
* @param {array} dir
8585
*/
8686
function createListOfDirectories(prev, dir) {
87-
return {
87+
return {
8888
...prev,
89-
[dir.split('/').pop()]: dir,
89+
[dir.split(path.sep).pop()]: dir,
9090
}
9191
}
9292

0 commit comments

Comments
 (0)