From 313a144f5b5121f0573df38e8e6ab9e9d9d61a26 Mon Sep 17 00:00:00 2001 From: Yu Jiang Tham Date: Wed, 8 May 2024 13:58:08 -0400 Subject: [PATCH] Update exec --- axiom-init/src/projectScaffold/forge.ts | 2 +- axiom-init/src/projectScaffold/nextjs.ts | 2 +- axiom-init/src/projectScaffold/script.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/axiom-init/src/projectScaffold/forge.ts b/axiom-init/src/projectScaffold/forge.ts index 87703e2..50b85e6 100644 --- a/axiom-init/src/projectScaffold/forge.ts +++ b/axiom-init/src/projectScaffold/forge.ts @@ -72,7 +72,7 @@ export const scaffoldForge = async ( // Clone the axiom-quickstart template console.log("Fetching Axiom quickstart template..."); const tempDir = `.axiom-temp-${Date.now()}`; - await sm.exec(`git clone --depth 1 https://github.com/axiom-crypto/axiom-quickstart.git ${tempDir}`, "Clone Axiom quickstart template"); + await sm.execWithStream(`git clone --depth 1 https://github.com/axiom-crypto/axiom-quickstart.git ${tempDir}`, [], "Clone Axiom quickstart template"); sm.cp(`${tempDir}/.`, ".", ` - Copy files to ${chalk.bold(sm.basePath)}`); // Delete .ts files in app folder (not recursive) diff --git a/axiom-init/src/projectScaffold/nextjs.ts b/axiom-init/src/projectScaffold/nextjs.ts index 481041e..dee2978 100644 --- a/axiom-init/src/projectScaffold/nextjs.ts +++ b/axiom-init/src/projectScaffold/nextjs.ts @@ -81,7 +81,7 @@ export const scaffoldNext = async ( // Clone the Next.js scaffold console.log("Fetching Axiom Next.js scaffold..."); const tempDir = `.axiom-temp-nextjs-${Date.now()}`; - await sm.exec(`git clone --depth 1 https://github.com/axiom-crypto/axiom-scaffold-nextjs.git ${tempDir}`, "Clone Axiom Next.js scaffold"); + await sm.execWithStream(`git clone --depth 1 https://github.com/axiom-crypto/axiom-scaffold-nextjs.git ${tempDir}`, [], "Clone Axiom Next.js scaffold"); sm.cp(`${tempDir}/.`, appPath, ` - Copy Next.js scaffold files to ${chalk.bold(appPath)}`); // Clean up cloned repo diff --git a/axiom-init/src/projectScaffold/script.ts b/axiom-init/src/projectScaffold/script.ts index 9138704..d9067d9 100644 --- a/axiom-init/src/projectScaffold/script.ts +++ b/axiom-init/src/projectScaffold/script.ts @@ -71,7 +71,7 @@ export const scaffoldScript = async ( // Clone the axiom-quickstart template console.log("Fetching Axiom quickstart template..."); const tempDir = `.axiom-temp-${Date.now()}`; - await sm.exec(`git clone --depth 1 https://github.com/axiom-crypto/axiom-quickstart.git ${tempDir}`, "Clone Axiom quickstart template"); + await sm.execWithStream(`git clone --depth 1 https://github.com/axiom-crypto/axiom-quickstart.git ${tempDir}`, [], "Clone Axiom quickstart template"); sm.cp(`${tempDir}/.`, ".", ` - Copy files to ${chalk.bold(sm.basePath)}`); // Remove .git folder from cloned quickstart scaffold