trufflesuite / ganache

:warning: The Truffle Suite is being sunset. For information on ongoing support, migration options and FAQs, visit the Consensys blog. Thank you for all the support over the years.
https://consensys.io/blog/consensys-announces-the-sunset-of-truffle-and-ganache-and-new-hardhat?utm_source=github&utm_medium=referral&utm_campaign=2023_Sep_truffle-sunset-2023_announcement_
MIT License
2.62k stars 678 forks source link

build: remove hacks from process to build types #3816

Closed MicaiahReid closed 1 year ago

MicaiahReid commented 2 years ago

This change essentially removes some packages from our list of bundled packages in the api-extractor.json, because API extractor wasn't handling the bundling correctly. Instead we add those dependencies to our src/packages/ganache/package.json so we include the entire set of packages in our exported ganache bundle.

To test the actual types I ran npm run reinstall && INFURA_KEY=... npm run build && npm run prepublishOnly && cd src/packages/ganache/ && npm pack && cd ../../.. and imported the generated tarball into a project. I tested the types and that Ganache works in node and in the browser.