Skip to content

Commit

Permalink
fix: hopefully fix windows issues (fingers crossed emoji)
Browse files Browse the repository at this point in the history
  • Loading branch information
DSchau committed Jan 3, 2019
1 parent 90419a4 commit 3b65605
Showing 1 changed file with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,13 +100,16 @@ class Runner {
}

async parseEverything() {
const filesRegex = `/**/*.+(t|j)s?(x)`
let files = [`${this.base}/src`, `${this.base}/.cache/fragments`]
.concat(this.additional.map(additional => `${additional}/src`))
const filesRegex = path.join(`/**`, `*.+(t|j)s?(x)`)
let files = [
path.join(this.base, `src`),
path.join(this.base, `.cache`, `fragments`),
]
.concat(this.additional.map(additional => path.join(additional, `src`)))
.reduce(
(merged, folderPath) =>
merged.concat(
glob.sync(`${folderPath}${filesRegex}`, {
glob.sync(path.join(folderPath, filesRegex), {
nodir: true,
})
),
Expand Down

0 comments on commit 3b65605

Please sign in to comment.