This is a fork of @ethereum-waffle/compiler, but without typechain.
Compile solidity without the hassle.
This package exposes programmatic api for compiling solidity smart contracts.
Examples:
// Compilation with a config file
import { compileProject } from "waffle-compiler"
main()
async function main() {
await compileProject("path/to/waffle.json")
}
// Compilation with js config
import { compileAndSave, compile } from "waffle-compiler"
main()
async function main() {
const config = { sourceDirectory: "contracts", nodeModulesDirectory: "node_modules" }
// compile and save the output
await compileAndSave(config)
// just compile
const output = await compile(config)
console.log(output)
}
Example:
import { link } from ("waffle-compiler");