Skip to content

Commit

Permalink
explicitly state lib path
Browse files Browse the repository at this point in the history
  • Loading branch information
auroter committed Jan 23, 2025
1 parent 91702e8 commit fa96c2e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/bonding-curves/app/routes/api.compile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,9 @@ export const action: ActionFunction = async ({ request }) => {

let compileResult: { stdout: string; stderr: string }
if (isProduction) {
// Run forge with explicit output path and verbose logging
console.log('Running forge build...')
compileResult = await execAsync(`forge build --force --sizes --out ${outDir} --contracts /app/contracts --lib /app/lib -vvv`)
// Use correct flag --lib-paths instead of --lib
compileResult = await execAsync(`forge build --force --sizes --out ${outDir} --contracts /app/contracts --lib-paths /app/lib -vvv`)
console.log('Forge build complete')

// Log the contents of the output directory after compilation
Expand Down

0 comments on commit fa96c2e

Please sign in to comment.