Skip to content

Commit

Permalink
vue vite index fix 0.2.1-alpha.0
Browse files Browse the repository at this point in the history
  • Loading branch information
chakAs3 committed Jan 7, 2024
1 parent c60fa32 commit b052937
Show file tree
Hide file tree
Showing 5 changed files with 2,950 additions and 3,082 deletions.
4 changes: 2 additions & 2 deletions packages/storybook-nuxt-cli/src/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ const CHECKMARK = '\u2714' // ✔
const CROSSMARK = '\u274C' // ❌
const STARTMARK = '\u25B6' // ▶

const sbVersion = '7.5.3'
const nuxtSbVersion = '0.2.0'
const sbVersion = '7.6.7'
const nuxtSbVersion = '0.2.1'
const nuxtSbModuleVersion = '7.0.0'

const logger = console
Expand Down
37 changes: 19 additions & 18 deletions packages/storybook-nuxt/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@storybook-vue/nuxt",
"type": "module",
"version": "0.2.0",
"version": "0.2.0-alpha.0",
"packageManager": "[email protected]",
"description": "Storybook for Nuxt and Vite: Develop Vue3 components in isolation with Hot Reloading.",
"license": "MIT",
Expand Down Expand Up @@ -66,33 +66,34 @@
"vue": "^3.0.0"
},
"dependencies": {
"@nuxt/devtools-kit": "^1.0.2",
"@nuxt/kit": "3.8.1",
"@nuxt/schema": "3.8.1",
"@nuxt/devtools-kit": "^1.0.6",
"@nuxt/kit": "^3.9.1",
"@nuxt/schema": "^3.9.1",
"@nuxt/types": "2.17.2",
"@nuxt/vite-builder": "3.8.1",
"@storybook/builder-vite": "7.5.3",
"@storybook/vue3": "^7.5.3",
"@storybook/vue3-vite": "^7.5.3",
"autoprefixer": "^10.4.15",
"nuxt": "3.8.1",
"postcss": "^8.4.27",
"@nuxt/vite-builder": "^3.9.1",
"@storybook/builder-vite": "^7.6.7",
"@storybook/vue3": "^7.6.7",
"@storybook/vue3-vite": "^7.6.7",
"autoprefixer": "^10.4.16",
"nuxt": "^3.9.1",
"postcss": "^8.4.33",
"postcss-import": "^15.1.0",
"postcss-url": "^10.1.3",
"typescript": "^5.2.2"
"typescript": "^5.3.3",
"vue": "^3.4.5"
},
"devDependencies": {
"@storybook/types": "7.5.3",
"@vitejs/plugin-vue": "^4.2.3",
"@storybook/types": "^7.6.7s",
"@vitejs/plugin-vue": "^4.6.2",
"@vitejs/plugin-vue-jsx": "^3.1.0",
"changelogen": "^0.5.5",
"unbuild": "^2.0.0",
"vite": "4.5.0"
"vite": "^4.5.1"
},
"resolutions": {
"@storybook/vue3": "^7.5.3",
"@storybook/vue3-vite": "^7.5.3",
"vite": "4.5.0"
"@storybook/vue3": "^7.6.7",
"@storybook/vue3-vite": "^7.6.7",
"vite": "^4.5.0"
},
"publishConfig": {
"access": "public"
Expand Down
14 changes: 7 additions & 7 deletions packages/storybook-nuxt/playground/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,23 +18,23 @@
"@nuxtjs/color-mode": "^3.3.0",
"@pinia/nuxt": "^0.4.11",
"@storybook-vue/nuxt": "workspace:*",
"@storybook/addon-essentials": "7.5.3",
"@storybook/addon-interactions": "7.5.3",
"@storybook/addon-links": "7.5.3",
"@storybook/blocks": "7.5.3",
"@storybook/addon-essentials": "^7.6.7",
"@storybook/addon-interactions": "^7.6.7",
"@storybook/addon-links": "^7.6.7",
"@storybook/blocks": "^7.6.7",
"@storybook/testing-library": "^0.2.0",
"@types/node": "^18.17.5",
"nuxt": "3.8.1",
"nuxt": "^3.8.2",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"storybook": "7.5.3",
"storybook": "^7.6.7",
"typescript": "^5.1.0",
"vue": "^3.3.8",
"vue-router": "^4.2.5"
},
"pnpm": {
"overrides": {
"nuxt": "3.8.1",
"nuxt": "^3.8.2",
"vite": "4.5.0",
"vue": "3.3.8"
}
Expand Down
3 changes: 2 additions & 1 deletion packages/storybook-nuxt/src/preset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,9 @@ async function defineNuxtConfig(baseConfig: Record<string, any>) {
) => {
if (isClient) {
const plugins = baseConfig.plugins.filter((plugin: any) => plugin.name !== 'vite:vue')
baseConfig.plugins = [...plugins,
baseConfig.plugins = [
vuePlugin(),
...plugins,
]
extendedConfig = mergeConfig(config, baseConfig)
}
Expand Down
Loading

0 comments on commit b052937

Please sign in to comment.