Skip to content
This repository was archived by the owner on Feb 12, 2024. It is now read-only.

Commit b8f1b1b

Browse files
author
Alan Shaw
committed
fix: path is always posix
License: MIT Signed-off-by: Alan Shaw <[email protected]>
1 parent e24fc37 commit b8f1b1b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/utils/files/glob-source.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,9 @@ function normalizePathWithType (path, cb) {
106106
realpath: cb => fs.realpath(path, cb)
107107
}, (err, res) => {
108108
if (err) return cb(err)
109-
cb(null, { path: res.realpath, type: res.stat.isDirectory() ? 'dir' : 'file' })
109+
cb(null, {
110+
path: res.realpath.replace(/\\/g, '/'),
111+
type: res.stat.isDirectory() ? 'dir' : 'file'
112+
})
110113
})
111114
}

0 commit comments

Comments
 (0)