From 9e3f629e5ad9d9d9aab8292f49f4e7b52649e093 Mon Sep 17 00:00:00 2001 From: Adam Petersen Date: Wed, 12 Jul 2023 12:04:21 -0700 Subject: [PATCH] fix: enforce posix separator in glob result to match split pattern --- packages/zcli-themes/src/lib/getTemplates.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/zcli-themes/src/lib/getTemplates.ts b/packages/zcli-themes/src/lib/getTemplates.ts index 567eaee0..026038fc 100644 --- a/packages/zcli-themes/src/lib/getTemplates.ts +++ b/packages/zcli-themes/src/lib/getTemplates.ts @@ -3,7 +3,7 @@ import * as fs from 'fs' export default function getTemplates (themePath: string): Record { const templates: Record = {} - 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]