Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/dull-items-sort.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'sv': patch
---

chore: use `create-storybook` instead of `storybook init`
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,5 @@ jobs:
- run: pnpm exec playwright install chromium
- run: pnpm build
# prefetch the storybook cli to reduce fetching errors in tests
- run: pnpx storybook@latest --version
- run: pnpx create-storybook@latest --version
- run: pnpm test
2 changes: 1 addition & 1 deletion packages/addons/storybook/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export default defineAddon({
runsAfter('eslint');
},
run: async ({ sv }) => {
const args = ['storybook@latest', 'init', '--skip-install', '--no-dev'];
const args = ['create-storybook@latest', '--skip-install', '--no-dev'];

// skips the onboarding prompt during tests
if (process.env.NODE_ENV?.toLowerCase() === 'test') args.push('--yes');
Expand Down
Loading