Skip to content

Commit

Permalink
addressed feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
noahlitvin committed Oct 16, 2024
1 parent 180a913 commit e492884
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/cli/src/foundry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,14 +168,14 @@ export async function forgeBuild(options: Record<string, any>, cannonfile: strin
const cannonfilePath = path.resolve(cannonfile);
const projectDirectory = path.dirname(cannonfilePath);

log(bold('Building the foundry project...'));
if (!options.skipCompile) {
log(bold('Building the foundry project...'));

// use --build-info to output build info
// ref: https://github.com/foundry-rs/foundry/pull/7197
const forgeBuildArgs = [
'build',
'--build-info',
'--ast',
...fromFoundryOptionsToArgs(pickForgeBuildOptions(options), forgeBuildOptions),
];

Expand All @@ -195,6 +195,6 @@ if (!options.skipCompile) {
});
});
} else {
log(yellow('Skipping forge build...'));
log(yellow('--skip-compile flag detected. Skipping forge build...'));
}
}

0 comments on commit e492884

Please sign in to comment.