Skip to content

Commit

Permalink
fix: enforce posix separator in glob result to match split pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
moremada authored and luis-almeida committed Jan 23, 2024
1 parent 2af0f12 commit 9e3f629
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/zcli-themes/src/lib/getTemplates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import * as fs from 'fs'

export default function getTemplates (themePath: string): Record<string, string> {
const templates: Record<string, string> = {}
const filenames = globSync(`${themePath}/templates/**/*.hbs`)
const filenames = globSync(`${themePath}/templates/**/*.hbs`, { posix: true })

filenames.forEach((template) => {
const identifier = template.split('templates/')[1].split('.hbs')[0]
Expand Down

0 comments on commit 9e3f629

Please sign in to comment.