Skip to content

Commit

Permalink
fix: calling prebuild only if deps are installed (#3217)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>
  • Loading branch information
Torres-ssf and arboleya authored Sep 26, 2024
1 parent 3048099 commit 327b309
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/funny-chairs-appear.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"create-fuels": patch
---

fix: calling `prebuild` only if deps are installed
6 changes: 3 additions & 3 deletions packages/create-fuels/src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 327b309

Please sign in to comment.