Skip to content

[Feauture Discussion] Auto-create necessary package.json files #238

@escottalexander

Description

@escottalexander

Related to #237. After a user runs yarn create-extension, why can't we auto generate the package.json files completely?

It seems to me it would just be a matter of comparing package.json files as JavaScript Objects and adding whatever doesn't exist in both to the final extension package.json(s).

For instance, the user may add a package and/or script to the hardhat/package.json and then be told they need to add a package.json to their extension directory. We should be able to load the default SE-2 package.json and the pre-extension project's package.json and perform a deep compare on them as objects to determine what would need to be added to the final extension package.json.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions