Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bail on preview file changes #1133

Conversation

codykaup
Copy link
Contributor

@codykaup codykaup commented Jan 2, 2025

It's possible to make a change to preview.js and TurboSnap doesn't trigger a full rebuild (as seen with Vite projects). Instead, we want this to trigger a full rebuild to not miss anything.

  1. Go to https://new-storybook.netlify.app/ and download the zip for the repo of a React Vite project.
  2. Run build and then build-storybook --stats-json
  3. Run npx chromatic trace .storybook/main.ts and notice the TurboSnap bail message outputs in the terminal (be sure to use the canary listed in this PR)
  4. Run npx chromatic trace .storybook/preview.tsx and you should see the same bail message but pointing to preview.tsx (again, with the canary from this PR)
📦 Published PR as canary version: 11.23.0--canary.1133.12600702396.0

✨ Test out this PR locally via:

npm install [email protected]
# or 
yarn add [email protected]

@codykaup codykaup added release Auto: Create a `latest` release when merged patch Auto: Increment the patch version when merged labels Jan 2, 2025
@codykaup codykaup self-assigned this Jan 2, 2025
Copy link
Contributor

github-actions bot commented Jan 2, 2025

📦 Package Size: 5448 KB
✅ Compared to main: 0 KB 9dbaef7 (5448 KB)

Copy link

codecov bot commented Jan 2, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 69.40%. Comparing base (9dbaef7) to head (300222f).
Report is 8 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1133      +/-   ##
==========================================
+ Coverage   69.39%   69.40%   +0.01%     
==========================================
  Files         202      202              
  Lines        7316     7319       +3     
  Branches     1276     1280       +4     
==========================================
+ Hits         5077     5080       +3     
  Misses       2216     2216              
  Partials       23       23              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@codykaup codykaup requested review from ethriel3695 and a team January 2, 2025 20:12
@codykaup codykaup marked this pull request as ready for review January 2, 2025 20:12
@codykaup codykaup added minor Auto: Increment the minor version when merged and removed patch Auto: Increment the patch version when merged labels Jan 3, 2025
@codykaup codykaup added this pull request to the merge queue Jan 3, 2025
Merged via the queue into main with commit 43a9b94 Jan 3, 2025
31 of 32 checks passed
@codykaup codykaup deleted the cody/cap-2599-turbosnap-exit-on-storybook-config-does-not-work-as-expected branch January 3, 2025 16:24
@chromatic-ci-bot
Copy link
Collaborator

🚀 PR was released in v11.22.0 🚀

@chromatic-ci-bot chromatic-ci-bot added the released Verdict: This issue/pull request has been released label Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
minor Auto: Increment the minor version when merged release Auto: Create a `latest` release when merged released Verdict: This issue/pull request has been released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants