feat: make CLI node compatible (#4347)

This commit is contained in:
Ruben Fiszel
2024-09-07 02:31:26 +02:00
committed by GitHub
parent d11284feb2
commit fd18f42e0f
19 changed files with 1466 additions and 247 deletions

View File

@@ -59,13 +59,10 @@ export async function downloadZip(
log.debug(`Downloaded zip/tarball successfully`);
}
const blob = await zipResponse.blob();
return await JSZip.loadAsync(blob as any);
return await JSZip.loadAsync((await blob.arrayBuffer()) as any);
}
async function stub(
_opts: GlobalOptions & { override: boolean },
_dir: string
) {
function stub(_opts: GlobalOptions & { override: boolean }, _dir: string) {
console.log(
colors.red.underline(
'Pull is deprecated. Use "sync pull --raw" instead. See <TODO_LINK_HERE> for more information.'