Skip to content

Commit

Permalink
fix: globs not working on windows (#85)
Browse files Browse the repository at this point in the history
Co-authored-by: Cody Olsen <stipsan@gmail.com>
  • Loading branch information
vitorrd and stipsan committed Mar 20, 2023
1 parent 1a5c3d9 commit 8bc500f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/node/globFiles.ts
@@ -1,5 +1,6 @@
import path from 'path'
import globby from 'globby'

export function globFiles(patterns: string[]): Promise<string[]> {
return globby(patterns)
return globby(patterns.map((pattern) => pattern.split(path.sep).join(path.posix.sep)))
}

0 comments on commit 8bc500f

Please sign in to comment.