Conversation
🦋 Changeset detectedLatest commit: 63b6efa The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
apologies for the random comment - I think some of this dist stuff is just related to how for example: for the there's only the contents of the (I was testing this myself the other day and stumbled upon #26/#31 earlier, maybe next time I'll do a PR 😄 ) |
packages/hardhat/src/index.ts
Outdated
| @@ -1,2 +1,2 @@ | |||
| import "../../hardhat-forge/src/index"; | |||
| import "../../hardhat-anvil/src/index"; | |||
| import "@foundry-rs/hardhat-forge"; | |||
There was a problem hiding this comment.
Does this actually work? It looks like its just importing and not exporting.
Google search says you can do something like:
export * from "@foundry-rs/hardhat-forge";There was a problem hiding this comment.
Yeah if you want to export, you'd want that. Can also do export * as forge from "@foundry-rs/hardhat-forge"; if you want the exports to have a name vs import each thing from it.
the compiled version currently is the equivalent of just the imports, so
require("@foundry-rs/hardhat-forge");
require("@foundry-rs/hardhat-anvil");

use
import "@foundry-rs/hardhat-forge";tested with local project
yard add file:...