prb-contracts icon indicating copy to clipboard operation
prb-contracts copied to clipboard

Include the Hardhat artifacts and the TypeChain bindings in the npm package

Open PaulRBerg opened this issue 5 years ago • 2 comments

PaulRBerg avatar Jan 18 '21 13:01 PaulRBerg

Added script that does this in 848393a.

PaulRBerg avatar Apr 22 '21 09:04 PaulRBerg

Re-opening this as it's not as easy as I thought. The issue is that the name of the package is @paulrberg/contacts.

I consider the contracts directory the root of the package, not the actual root of the repo. So it is more like the root of the development environment. The artifacts and the typechain directories are located at the same level with contracts.

One possible remedy is to move the npm-ready artifacts and the typechain folder in contracts, but git ignore them.

PaulRBerg avatar Apr 22 '21 10:04 PaulRBerg

No longer applicable as this repo has been refactored to use Foundry and has no JavaScript/ TypeScript anymore.

PaulRBerg avatar Feb 25 '23 14:02 PaulRBerg