Skip to content

Commit

Permalink
chore: add common utils
Browse files Browse the repository at this point in the history
  • Loading branch information
axiaoan committed Dec 21, 2022
1 parent f73390c commit 0471159
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scripts/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export function renderTemplate(templateRoot: string, destRoot: string, answers:

// read all file names in templateRoot
const files = fs.readdirSync(templateRoot)

files.forEach((fileName) => {
const templatePath = path.resolve(templateRoot, fileName)
const destPath = path.resolve(destRoot, fileName)
Expand Down

0 comments on commit 0471159

Please sign in to comment.