Skip to content
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

Allow plugins to declare themselves via a buidler field in their package.json #339

Closed
cgewecke opened this issue Jul 16, 2019 · 2 comments
Closed

Comments

@cgewecke
Copy link
Contributor

cgewecke commented Jul 16, 2019

I help maintain solidity-coverage and we are contemplating a substantial rewrite over the next couple of months. I'd like to make the new version available as a buidler plugin (multi-platform accessibility is a long-standing issue at SC), but I'd also like to export its sub-components in an index.js so people can write:

const coverage = require("solidity-coverage");

and do whatever they want with those pieces. Additionally it might be easiest if we didn't have to maintain different modules for each development platform we integrate with.

Buidler loads plugins from their package main

"main": "dist/src/index.js",

Would you be open to allowing plugins to declare something like a 'buidler' field in their package.json as an alternative to main?

@alcuadrado
Copy link
Member

I'm glad to see that solidity-coverage is getting updated! Thanks for working on it :)

This is a very interesting idea and should be fairly easy to implement. I will do some research about using custom entries on package.json, but on a first glance, it doesn't seem problematic.

@fvictorio
Copy link
Member

Closing this because I don't think is possible with Hardhat's plugin system.

@fvictorio fvictorio closed this as not planned Won't fix, can't repro, duplicate, stale Dec 30, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 31, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

3 participants