JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 439
  • Score
    100M100P100Q104764F
  • License BSD 2-Clause License

Merges all import files into single file.

Package Exports

  • sol-merger/lib/merger

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (sol-merger) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

USAGE

Right now it only can process one solidity source file at time.

Simple usage:

npm i --save-dev sol-merger

Then add following line to your package.json.

{
  "scripts": {
    "build-contracts": "sol-merger ./contracts/MyContract.sol ./build/MyContract.sol"
  },
}

If no output file specified then output file will be created at the same directory and appended with _merged, i.e. MyContract_merged.sol.