Skip to content

Create Block: Add lifecycle script support #71069

Closed

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

Activity

  1. added
    [Type] Enhancement
    on Aug 5, 2025
  2. added
    [Tool] Create Block
    Developer Experience
    on Aug 5, 2025
  3. added a commit that references this issue on Aug 5, 2025
    2b033d1
  4. added
    [Status] In Progress
    on Aug 5, 2025
  5. added a commit that references this issue on Aug 27, 2025
    a128b66
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Developer Experience[Status] In Progress[Tool] Create Block[Type] Enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions