Skip to content

Commit 3b45854

Browse files
committed
lib: fix glob options
1 parent fb3d4e1 commit 3b45854

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

lib/internal/fs/glob.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,7 @@ class Glob {
206206
__proto__: null,
207207
nocase: isWindows || isMacOS,
208208
nonegate: true,
209+
posixSlashes: isMacOS,
209210
}));
210211

211212
this.#patterns = ArrayPrototypeFlatMap(this.matchers, (matcher) => ArrayPrototypeMap(matcher.set,

lib/path.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ function glob(path, pattern, windows) {
168168
__proto__: null,
169169
nocase: isWindows || isMacOS,
170170
nonegate: true,
171+
posixSlashes: !windows,
171172
});
172173
}
173174

0 commit comments

Comments
 (0)