Skip to content

Commit

Permalink
Merge pull request nuxt-modules#54 from storybook-vue:release/0.0.7
Browse files Browse the repository at this point in the history
fix: build preset
  • Loading branch information
chakAs3 authored Aug 29, 2023
2 parents 14bd899 + d2ac6cd commit 356b934
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 7 deletions.
1 change: 1 addition & 0 deletions packages/storybook-nuxt/build.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ export default defineBuildConfig({
entries: [
{ input: 'src/index' },
{ input: 'src/preview', outDir: 'dist/', ext: 'js' },
{ input: 'src/server/', outDir: 'dist/server', format: 'esm', ext: 'js' },
{
input: 'src/runtime/', outDir: 'dist/runtime', format: 'esm', ext: 'js',
},
Expand Down
3 changes: 1 addition & 2 deletions packages/storybook-nuxt/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
},
"./preset": {
"types": "./dist/preset.d.ts",
"require": "./dist/preset.cjs"
"require": "./dist/server/preset.js"
},
"./preview": {
"types": "./dist/preview.d.ts",
Expand Down Expand Up @@ -89,7 +89,6 @@
"bundler": {
"entries": [
"./src/index.ts",
"./src/preset.ts",
"./src/preview.ts"
],
"platform": "node"
Expand Down
1 change: 0 additions & 1 deletion packages/storybook-nuxt/preset.js

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@ import type { Nuxt } from '@nuxt/schema'

import type { StorybookConfig } from '../types'

const packageDir = resolve(fileURLToPath(import.meta.url), '../..')
const distDir = resolve(fileURLToPath(import.meta.url), '..')
const packageDir = resolve(fileURLToPath(
import.meta.url), '../../..')
const distDir = resolve(fileURLToPath(
import.meta.url), '../../..', 'dist')
const runtimeDir = resolve(distDir, 'runtime')
const pluginsDir = resolve(runtimeDir, 'plugins')
const componentsDir = resolve(runtimeDir, 'components')
Expand Down
4 changes: 2 additions & 2 deletions packages/storybook-nuxt/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
"strict": true,
"paths": {
"#app": [
"./node_modules/nuxt/dist/app"
"/Users/chakir/devs/storybook-nuxt-preset/storybook-nuxt/packages/storybook-nuxt/node_modules/nuxt/dist/app"
],
"#app/entry": [
"./node_modules/nuxt/dist/app/*"
"/Users/chakir/devs/storybook-nuxt-preset/storybook-nuxt/packages/storybook-nuxt/node_modules/nuxt/dist/app/entry"
]
}
},
Expand Down

0 comments on commit 356b934

Please sign in to comment.