Skip to content

Commit

Permalink
fix: windows paths
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperchupuDev authored Jul 17, 2024
1 parent 57a372b commit b55de45
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ const normalizeOptions = async (
}

if (Array.isArray(entry)) {
const matcher = picomatch(entry)
const matcher = picomatch(entry, { windows: true })
options.entry = await new fdir()
.withRelativePaths()
.filter((file) => matcher(file))
Expand Down
2 changes: 1 addition & 1 deletion test/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export async function run(
.withRelativePaths()
.crawl(path.resolve(testDir, 'dist'))
.withPromise()
.then((res) => res.sort())
.then((res) => res.map((f) => f.replaceAll('\\', '/')))

return {
get output() {
Expand Down

0 comments on commit b55de45

Please sign in to comment.