Skip to content

Commit 809bef8

Browse files
authored
chore: use create-storybook instead of storybook init (#638)
* chore: use `create-storybook` instead of `storybook init` * changeset
1 parent 97c0e7e commit 809bef8

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

.changeset/dull-items-sort.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'sv': patch
3+
---
4+
5+
chore: use `create-storybook` instead of `storybook init`

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,5 +54,5 @@ jobs:
5454
- run: pnpm exec playwright install chromium
5555
- run: pnpm build
5656
# prefetch the storybook cli to reduce fetching errors in tests
57-
- run: pnpx storybook@latest --version
57+
- run: pnpx create-storybook@latest --version
5858
- run: pnpm test

packages/addons/storybook/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export default defineAddon({
1212
runsAfter('eslint');
1313
},
1414
run: async ({ sv }) => {
15-
const args = ['storybook@latest', 'init', '--skip-install', '--no-dev'];
15+
const args = ['create-storybook@latest', '--skip-install', '--no-dev'];
1616

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

0 commit comments

Comments
 (0)