Skip to content

Commit

Permalink
Fix Nuxt sandbox
Browse files Browse the repository at this point in the history
  • Loading branch information
valentinpalkovic committed Feb 5, 2025
1 parent 3e489c7 commit 3b73b65
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion code/lib/create-storybook/src/generators/NUXT/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ import type { Generator } from '../types';
const generator: Generator = async (packageManager, npmOptions, options) => {
await baseGenerator(
packageManager,
npmOptions,
{
...npmOptions,
},
options,
'vue3',
{
Expand All @@ -19,6 +21,14 @@ const generator: Generator = async (packageManager, npmOptions, options) => {
},
'nuxt'
);

if (npmOptions.skipInstall === true) {
console.log(
'The --skip-install flag is not supported for generating Storybook for Nuxt. We will continue to install dependencies.'
);
await packageManager.installDependencies();
}

// Add nuxtjs/storybook to nuxt.config.js
await packageManager.runPackageCommand('nuxi', [
'module',
Expand Down

0 comments on commit 3b73b65

Please sign in to comment.