Skip to content

Commit 211eb6a

Browse files
fix: download templates on Windows
1 parent 57c283b commit 211eb6a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/services/generate.services.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ const populate = async ({gitHubAction, ...rest}: PopulateInput) => {
5555
type PopulateInputFn = Omit<PopulateInput, 'gitHubAction'>;
5656

5757
const populateFromCDN = async ({where, template, localDevelopment}: PopulateInputFn) => {
58-
const templatePath = getRelativeTemplatePath(template);
58+
// Windows uses backslash, we cannot build the URL path without replacing those with slash.
59+
const templatePath = getRelativeTemplatePath(template).replace(/\\/g, '/');
5960

6061
const {hostname} = new URL(JUNO_CDN_URL);
6162

0 commit comments

Comments
 (0)