From 8bc500f6a0558631905fe013dab3b8a4edbc6502 Mon Sep 17 00:00:00 2001 From: vitorrd Date: Mon, 20 Mar 2023 15:08:57 +0100 Subject: [PATCH] fix: globs not working on windows (#85) Co-authored-by: Cody Olsen --- src/node/globFiles.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/node/globFiles.ts b/src/node/globFiles.ts index a4977c91..d44399db 100644 --- a/src/node/globFiles.ts +++ b/src/node/globFiles.ts @@ -1,5 +1,6 @@ +import path from 'path' import globby from 'globby' export function globFiles(patterns: string[]): Promise { - return globby(patterns) + return globby(patterns.map((pattern) => pattern.split(path.sep).join(path.posix.sep))) }