Skip to content

Commit

Permalink
fix(create-router): await directory copy operation when copying templ…
Browse files Browse the repository at this point in the history
…ate files (#2943)
  • Loading branch information
babs20 authored Dec 7, 2024
1 parent bfd590a commit ba3386b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/create-router/src/utils/copyTemplateFiles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ async function copy(src: string, dest: string) {
const statResult = await stat(src)
const replacedDest = dest.replace(DOT_PREFIX, '.')
if (statResult.isDirectory()) {
copyDir(src, replacedDest)
await copyDir(src, replacedDest)
} else {
await copyFile(src, replacedDest)
}
Expand Down

0 comments on commit ba3386b

Please sign in to comment.