mirror of
https://github.com/chenasraf/simple-scaffold.git
synced 2026-05-18 01:29:09 +00:00
fix: use path.normalize
This commit is contained in:
@@ -228,14 +228,14 @@ export function getBasePath(relPath: string): string {
|
|||||||
.replace(process.cwd(), "")
|
.replace(process.cwd(), "")
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function getFileList(config: ScaffoldConfig, template: string): Promise<string[]> {
|
export async function getFileList(_config: ScaffoldConfig, template: string): Promise<string[]> {
|
||||||
return (
|
return (
|
||||||
await glob(template, {
|
await glob(template, {
|
||||||
dot: true,
|
dot: true,
|
||||||
nodir: true,
|
nodir: true,
|
||||||
// debug: config.verbose === LogLevel.Debug,
|
// debug: config.verbose === LogLevel.Debug,
|
||||||
})
|
})
|
||||||
).map((f) => f.replace(/\//g, path.sep))
|
).map(path.normalize)
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface GlobInfo {
|
export interface GlobInfo {
|
||||||
|
|||||||
Reference in New Issue
Block a user