Skip to content

Commit

Permalink
chore: update cli
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-phan committed Sep 25, 2024
1 parent 7bc0f5e commit 3d69655
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/cli/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ const downloadAndExtractTemplate = async (template, outputPath) => {
const fetch = (await import('node-fetch')).default
let { downloadURL, defaultDownloadFolder } = template
const response = await fetch(downloadURL)
const buffer = await response.buffer()
const arrayBuffer = await response.arrayBuffer()
const buffer = Buffer.from(arrayBuffer)
await decompress(buffer, `${outputPath}/temp`)

// Move contents from temp to the root of outputPath and then remove temp
Expand Down

0 comments on commit 3d69655

Please sign in to comment.