Skip to content

Use prepack and postpack rather than prepublishOnly and postpublish #1159

Closed
@oliverlangan

Description

@oliverlangan

As an app or addon publisher, I want my type definitions created in prepack so that I can use a non-standard publishing mechanism.

According to the npm scripts documentation, prepublishOnly only runs on npm publish (and presumably yarn publish), but our CI/publish environment uses neither.

I believe it would be more flexible to use prepack instead of prepublishOnly; and in the interest of making it symmetric, I suggest we also use postpack instead of postpublish.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions