-
Notifications
You must be signed in to change notification settings - Fork 2
Add hardhat #6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Add hardhat #6
Conversation
todo:
|
:D |
subtask(TASK_COMPILE_SOLIDITY).setAction(async (_, { config }, runSuper) => { | ||
const superRes = await runSuper(); | ||
|
||
try { | ||
await writeFile( | ||
join(config.paths.artifacts, "package.json"), | ||
'{ "type": "commonjs" }', | ||
); | ||
} catch (error) { | ||
console.error("Error writing package.json: ", error); | ||
} | ||
|
||
return superRes; | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
probably a nit but I would move that to a tasks
folder
@@ -0,0 +1,37 @@ | |||
{ | |||
"name": "solidity-cbor", | |||
"private": true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will likely need to go away when you're ready to publish?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
i think i'm going to convert this repository to a workspace, with hardhat tools at the root only, so the hardhat/foundry dual config is less awkward and special-cased. |
also concerned that esm config creates problems for consumption. workspacing it should allow that to be tested |
add hardhat, and a basic consuming fixture.
esm mode because i'm insane.
cc @julien51
haven't set up publishing yet, try it out with
pnpm pack
.