Skip to content

Commit

Permalink
fix: fix error due to import json attribute (and deactivate storybook…
Browse files Browse the repository at this point in the history
… version check)
  • Loading branch information
tobiasdiez committed Jul 16, 2024
1 parent 64e80de commit 2aa1c09
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions packages/nuxt-module/src/storybook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,8 @@ import { getPort } from 'get-port-please'
import type { ModuleOptions } from './module'
import { withTrailingSlash } from 'ufo'
import { colors, logger } from './logger'
import {
cache as storybookCache,
type PackageJson,
} from '@storybook/core-common'
import { cache as storybookCache } from '@storybook/core-common'
import { buildDevStandalone, withTelemetry } from '@storybook/core-server'
import storybookPackageJson from '@storybook/core-server/package.json' with { type: 'json' }

const buildLogger = logger.withTag('build')

Expand Down Expand Up @@ -57,7 +53,10 @@ export async function setupStorybook(options: ModuleOptions, nuxt: Nuxt) {
configDir: resolve(projectDir, './.storybook'),
configType: 'DEVELOPMENT',
cache: storybookCache,
packageJson: storybookPackageJson as PackageJson,
packageJson: { version: '8.2.2' },
// Don't check for storybook updates (we're using the latest version)
versionUpdates: false,
quiet: options.logLevel < 4, // 4 = debug
} satisfies Parameters<typeof buildDevStandalone>[0]

if (!nuxt.options.dev) return
Expand Down

0 comments on commit 2aa1c09

Please sign in to comment.