Skip to content

Commit

Permalink
chore: use workspace feature for example (#79)
Browse files Browse the repository at this point in the history
* chore: use workspace feature for example

Fixes #75

* replace types import
  • Loading branch information
tobiasdiez authored Oct 14, 2023
1 parent 84d9eb7 commit fb512c8
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ Commands:
- `dev`: Build in watch mode.
- `lint`: Check for eslint and prettier issues.
- `test`: Run the tests.
- `example:vite`: Open the example storybook (using vite).
- `example:vite`: Open the example storybook (using vite). You need to run `build` or `dev` first.
- `play`: Run the playground (currently not used).
- `release`: Release a new version to npm.

Expand Down
2 changes: 1 addition & 1 deletion examples/vite/.storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
'@storybook/addon-links',
'@storybook/addon-essentials',
'@storybook/addon-interactions',
'../../../src/storybook.ts',
'storybook-vue-addon',
],
framework: {
name: '@storybook/vue3-vite',
Expand Down
1 change: 1 addition & 0 deletions examples/vite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"@storybook/addon-actions": "^7.4.6",
"@storybook/addon-essentials": "^7.4.6",
"@storybook/addon-interactions": "^7.4.6",
"storybook-vue-addon": "workspace:*",
"@storybook/addon-links": "^7.4.6",
"@storybook/jest": "^0.2.3",
"@storybook/testing-library": "0.2.2",
Expand Down
2 changes: 1 addition & 1 deletion examples/vite/src/tests/explicit-types.stories.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script lang="ts" setup>
import MyButton from '../components/Button.vue'
import type { Story, Stories } from '../../../../src/types'
import type { Story, Stories } from 'storybook-vue-addon/types'
</script>

<template>
Expand Down
3 changes: 3 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit fb512c8

Please sign in to comment.