import { sync as commandExistsSync } from 'command-exists'
if (!commandExistsSync('forge')) {
console.error(
'Command failed. Is Foundry not installed? Consider installing via `curl -L https://foundry.paradigm.xyz | bash` and then running `foundryup` on a new terminal. For more context, check the installation instructions in the book: https://book.getfoundry.sh/getting-started/installation.html.'
)
process.exit(1)
}
-
Liam Horne authored
* build: add prebuild script to check for foundry installation * fix: replace shell script with simple ts script for windows compatability * lint: use import statement instead of variable require Co-authored-by:
mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
65a859de