Skip to content

feat(scripts-storybook): make getMetadata throwable via config to be able to process stories glob for packages no longer present in the repo#31226

Merged
Hotell merged 2 commits into
microsoft:masterfrom
Hotell:storybook/getPackageStoriesGlob-api-fixes
May 2, 2024
Merged

feat(scripts-storybook): make getMetadata throwable via config to be able to process stories glob for packages no longer present in the repo#31226
Hotell merged 2 commits into
microsoft:masterfrom
Hotell:storybook/getPackageStoriesGlob-api-fixes

Conversation

@Hotell

@Hotell Hotell commented Apr 30, 2024

Copy link
Copy Markdown
Contributor

Previous Behavior

getMetadata will throw if dependency is not an workspace project

New Behavior

  • getMetadata will throw if dependency is not an workspace project only if explicitly set via new options API.
  • internal logic of getPackageStoriesGlob refactored to use Array.reduce for perf and simpler logic

Related Issue(s)

@github-actions github-actions Bot added this to the April Project Cycle Q1 2024 milestone Apr 30, 2024
@fabricteam

fabricteam commented Apr 30, 2024

Copy link
Copy Markdown
Collaborator

📊 Bundle size report

✅ No changes found

@codesandbox-ci

codesandbox-ci Bot commented Apr 30, 2024

Copy link
Copy Markdown

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

@Hotell Hotell changed the title feat(scripts-storybook): make getMetadata throwable via config to be able to process stories glob for packages no longer present in the repo chore: remove deprecated package - testing pipeline Apr 30, 2024
@Hotell Hotell changed the title chore: remove deprecated package - testing pipeline feat(scripts-storybook): make getMetadata throwable via config to be able to process stories glob for packages no longer present in the repo Apr 30, 2024
@Hotell
Hotell force-pushed the storybook/getPackageStoriesGlob-api-fixes branch from 50b8807 to da65e4b Compare April 30, 2024 10:48
@Hotell
Hotell marked this pull request as ready for review April 30, 2024 10:51
@Hotell
Hotell requested a review from a team as a code owner April 30, 2024 10:51
@tudorpopams
tudorpopams self-requested a review April 30, 2024 11:13
@Hotell
Hotell force-pushed the storybook/getPackageStoriesGlob-api-fixes branch from da65e4b to 48ea588 Compare April 30, 2024 13:10
@Hotell
Hotell force-pushed the storybook/getPackageStoriesGlob-api-fixes branch from 48ea588 to 4d8e5f9 Compare April 30, 2024 16:07
@fabricteam

Copy link
Copy Markdown
Collaborator

🕵 FluentUIV0 No visual regressions between this PR and main

Comment thread scripts/storybook/src/utils.js
@fabricteam

Copy link
Copy Markdown
Collaborator

🕵 fluentuiv9 No visual regressions between this PR and main

@Hotell
Hotell merged commit 1f3d2e7 into microsoft:master May 2, 2024
@Hotell
Hotell deleted the storybook/getPackageStoriesGlob-api-fixes branch May 2, 2024 13:16
miroslavstastny pushed a commit to miroslavstastny/fluentui that referenced this pull request Jun 14, 2024
…able to process stories glob for packages no longer present in the repo (microsoft#31226)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants