mirror of
https://github.com/pezkuwichain/revive.git
synced 2026-06-26 02:31:04 +00:00
63f0266fff
second take on #339 turns out that the resolve-pkg npm package was also failing to properly resolve package with an exports field define in the package.json. This fixes it and add a test case with such a package
Usage from Node.js
import { compile } from "@parity/resolc";
const sources = {
["contracts/1_Storage.sol"]: {
content: readFileSync("fixtures/storage.sol", "utf8"),
}
const out = await compile(sources);
Usage from shell
npx @parity/resolc@latest --bin contracts/1_Storage.sol