fix: use path.normalize

This commit is contained in:
Chen Asraf
2023-05-08 00:28:47 +03:00
parent 943aad1564
commit 565090a951

View File

@@ -228,14 +228,14 @@ export function getBasePath(relPath: string): string {
.replace(process.cwd(), "")
}
export async function getFileList(config: ScaffoldConfig, template: string): Promise<string[]> {
export async function getFileList(_config: ScaffoldConfig, template: string): Promise<string[]> {
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 {