Skip to content

CLI: Fix pnp paths logic in storybook metadata#23259

Merged
shilman merged 3 commits into
nextfrom
fix/pnp-paths-logic
Jun 30, 2023
Merged

CLI: Fix pnp paths logic in storybook metadata#23259
shilman merged 3 commits into
nextfrom
fix/pnp-paths-logic

Conversation

@yannbf
Copy link
Copy Markdown
Member

@yannbf yannbf commented Jun 30, 2023

Closes #23252

What I did

The logic from #23199 was slightly wrong, making the code try to require a package json with a wrong path and therefore break. This PR switches the logic to only parse and remove pnp paths after retrieving the package json for a given storybook framework

How to test

Checklist

  • Make sure your changes are tested (stories and/or unit, integration, or end-to-end tests)
  • Make sure to add/update documentation regarding your changes
  • If you are deprecating/removing a feature, make sure to update
    MIGRATION.MD

Maintainers

  • If this PR should be tested against many or all sandboxes,
    make sure to add the ci:merged or ci:daily GH label to it.
  • Make sure this PR contains one of the labels below.

["cleanup", "BREAKING CHANGE", "feature request", "bug", "documentation", "maintenance", "dependencies", "other"]

@yannbf yannbf added bug cli patch:yes Bugfix & documentation PR that need to be picked to main branch labels Jun 30, 2023
@yannbf yannbf force-pushed the fix/pnp-paths-logic branch from 5427fad to 4cefbb8 Compare June 30, 2023 11:11
@shilman shilman merged commit 446bed6 into next Jun 30, 2023
@shilman shilman deleted the fix/pnp-paths-logic branch June 30, 2023 11:34
JReinhold pushed a commit that referenced this pull request Jul 2, 2023
CLI: Fix pnp paths logic in storybook metadata
(cherry picked from commit 446bed6)
@github-actions github-actions Bot mentioned this pull request Jul 2, 2023
15 tasks
@github-actions github-actions Bot added the patch:done Patch/release PRs already cherry-picked to main/release branch label Jul 3, 2023
@ndelangen ndelangen removed the patch:yes Bugfix & documentation PR that need to be picked to main branch label Oct 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug cli patch:done Patch/release PRs already cherry-picked to main/release branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Cannot find module '$SNIP/packages/storybook/package.json'

3 participants