Skip to content

Commit

Permalink
Update exec
Browse files Browse the repository at this point in the history
  • Loading branch information
ytham committed May 8, 2024
1 parent 970648d commit 313a144
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion axiom-init/src/projectScaffold/forge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion axiom-init/src/projectScaffold/nextjs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion axiom-init/src/projectScaffold/script.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 313a144

Please sign in to comment.