Skip to content

Fix formatting of storybook:install script in package.json - #1388

Merged
francinelucca merged 2 commits into
mainfrom
joshblack-patch-1
May 11, 2026
Merged

francinelucca merged 2 commits into
mainfrom
joshblack-patch-1

Conversation

@joshblack

Copy link
Copy Markdown
Member

Closes #1386

Remove the postinstall hook as this causes issues when using the package. This is only for local development and should not be included in the published package.

Copilot AI review requested due to automatic review settings May 11, 2026 17:16
@joshblack
joshblack requested a review from a team as a code owner May 11, 2026 17:16
@joshblack
joshblack requested a review from jonrohan May 11, 2026 17:16
@changeset-bot

changeset-bot Bot commented May 11, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 928419f

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@primer/primitives Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Removes the postinstall hook to prevent Storybook dependency installation from running for package consumers, keeping it as a local-development-only step.

Changes:

  • Removed postinstall script that triggered storybook:install during installs.
  • Kept storybook:install as an explicit, opt-in script for local development.
  • Added a changeset to publish the removal as a patch.
Show a summary per file
File Description
package.json Removes postinstall and fixes scripts/object formatting to avoid consumer install side effects.
.changeset/funny-foxes-deliver.md Adds a patch changeset documenting the removal of postinstall.

Copilot's findings

Tip

Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

  • Files reviewed: 2/2 changed files
  • Comments generated: 0

@joshblack

Copy link
Copy Markdown
Member Author

FYI @lukasoppermann

I think the project can be updated to use npm workspaces so that dependencies are setup automatically if that helps

@francinelucca
francinelucca merged commit 6a7399c into main May 11, 2026
27 checks passed
@francinelucca
francinelucca deleted the joshblack-patch-1 branch May 11, 2026 18:01
@primer primer Bot mentioned this pull request May 11, 2026
@lukasoppermann

Copy link
Copy Markdown
Collaborator

@joshblack I tried it and ran into issues. If you can get it to work, feel free to do so, that would be nice.

This branch was successfully deployed

1 active and 1 inactive deployments
Preview (Storybook) — 928419fd Deployed May 11, 2026 by github-actions[bot]
github-pages — 928419fd Deployed May 11, 2026 by joshblack via Build and deploy / Deploy #4189
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Recently added post install hook is broken when installing the published package from npm

4 participants