Context
Every recipe in justfile uses relative paths — cd circuits && npm run compile,
cd contracts && cargo test. just runs from the invocation directory by default, so running
just contract from inside app/ looks for app/contracts/ and fails with a confusing error.
just has a built-in fix for exactly this.
Where to build it
justfile — the top of the file and every recipe.
What to do
Acceptance criteria
cd app && just contract works.
Context
Every recipe in
justfileuses relative paths —cd circuits && npm run compile,cd contracts && cargo test.justruns from the invocation directory by default, so runningjust contractfrom insideapp/looks forapp/contracts/and fails with a confusing error.justhas a built-in fix for exactly this.Where to build it
justfile— the top of the file and every recipe.What to do
set working-directory := justfile_directory()(or prefix paths with{{justfile_directory()}}on olderjustversions).justversion needed for the setting, in a comment.Acceptance criteria
cd app && just contractworks.