From 327b309b817b475fcf176fb317a637c81be7a631 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9rgio=20Torres?= <30977845+Torres-ssf@users.noreply.github.com> Date: Thu, 26 Sep 2024 17:25:30 -0300 Subject: [PATCH] fix: calling `prebuild` only if deps are installed (#3217) * release PR * comment run prebuild code * made prebuild command to run only when deps are installed * remove log * stop PR release * add changeset * Update .changeset/funny-chairs-appear.md --------- Co-authored-by: Anderson Arboleya --- .changeset/funny-chairs-appear.md | 5 +++++ packages/create-fuels/src/cli.ts | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) create mode 100644 .changeset/funny-chairs-appear.md diff --git a/.changeset/funny-chairs-appear.md b/.changeset/funny-chairs-appear.md new file mode 100644 index 00000000000..241fec2026b --- /dev/null +++ b/.changeset/funny-chairs-appear.md @@ -0,0 +1,5 @@ +--- +"create-fuels": patch +--- + +fix: calling `prebuild` only if deps are installed diff --git a/packages/create-fuels/src/cli.ts b/packages/create-fuels/src/cli.ts index 2f7dd6b7814..6b33723e20a 100644 --- a/packages/create-fuels/src/cli.ts +++ b/packages/create-fuels/src/cli.ts @@ -153,10 +153,10 @@ export const runScaffoldCli = async ({ process.chdir(projectPath); execSync(packageManager.install, { stdio: verboseEnabled ? 'inherit' : 'pipe' }); installDepsSpinner.succeed('Installed dependencies!'); - } - // Generate typegen files - execSync(packageManager.run('prebuild'), { stdio: verboseEnabled ? 'inherit' : 'pipe' }); + // Generate typegen files + execSync(packageManager.run('prebuild'), { stdio: verboseEnabled ? 'inherit' : 'pipe' }); + } log(); log();