Skip to content

Commit

Permalink
fix: glob pattern on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
alumni authored and jorgebodega committed Sep 5, 2022
1 parent 14fe631 commit 1246b1c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/utils/fileHandling.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { resolve } from 'path'
import { sync } from 'glob'

export const calculateFilePath = (filePattern: string): string[] => {
return sync(resolve(process.cwd(), filePattern), { ignore: '**/node_modules/**' })
return sync(filePattern, { ignore: '**/node_modules/**', absolute: true })
}

0 comments on commit 1246b1c

Please sign in to comment.