Skip to content

Commit 327b309

Browse files
Torres-ssfarboleya
andauthored
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 <[email protected]>
1 parent 3048099 commit 327b309

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

.changeset/funny-chairs-appear.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"create-fuels": patch
3+
---
4+
5+
fix: calling `prebuild` only if deps are installed

packages/create-fuels/src/cli.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -153,10 +153,10 @@ export const runScaffoldCli = async ({
153153
process.chdir(projectPath);
154154
execSync(packageManager.install, { stdio: verboseEnabled ? 'inherit' : 'pipe' });
155155
installDepsSpinner.succeed('Installed dependencies!');
156-
}
157156

158-
// Generate typegen files
159-
execSync(packageManager.run('prebuild'), { stdio: verboseEnabled ? 'inherit' : 'pipe' });
157+
// Generate typegen files
158+
execSync(packageManager.run('prebuild'), { stdio: verboseEnabled ? 'inherit' : 'pipe' });
159+
}
160160

161161
log();
162162
log();

0 commit comments

Comments
 (0)