Skip to content

Create Block: Add lifecycle script support #71069

@bacoords

Description

@bacoords

What problem does this address?

Currently when adding custom scripts to a template config, npm lifecycle scripts (i.e. postinstall) are being ignored. They're added to your package.json file but they aren't executed during the initial set up.

Here's an example config from WooCommerce: https://github.com/woocommerce/woocommerce/blob/trunk/packages/js/create-woo-extension/index.js#L18

What is your proposed solution?

Add manual support for all- or a subset- of lifecycle scripts to the manual generation process.

CC @ryanwelcher

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions