From 565090a951e13dd222f2f802df717e7cb6ca0a73 Mon Sep 17 00:00:00 2001 From: Chen Asraf Date: Mon, 8 May 2023 00:28:47 +0300 Subject: [PATCH] fix: use path.normalize --- src/utils.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils.ts b/src/utils.ts index 09a11ce..ec4ba14 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -228,14 +228,14 @@ export function getBasePath(relPath: string): string { .replace(process.cwd(), "") } -export async function getFileList(config: ScaffoldConfig, template: string): Promise { +export async function getFileList(_config: ScaffoldConfig, template: string): Promise { return ( await glob(template, { dot: true, nodir: true, // debug: config.verbose === LogLevel.Debug, }) - ).map((f) => f.replace(/\//g, path.sep)) + ).map(path.normalize) } export interface GlobInfo {