Skip to content

Commit

Permalink
fix(storybook): dont override native params
Browse files Browse the repository at this point in the history
nrwl#7531

ISSUES CLOSED: nrwl#7531
  • Loading branch information
mandarini committed Sep 26, 2022
1 parent 25e53b3 commit 5e58e92
Showing 1 changed file with 6 additions and 2 deletions.
Expand Up @@ -23,6 +23,8 @@ export default async function buildStorybookExecutor(
const frameworkPath = getStorybookFrameworkPath(options.uiFramework);
const { default: frameworkOptions } = await import(frameworkPath);

console.log('KATEIRNA KATERINA', options);

const option = storybookOptionMapper(options, frameworkOptions, context);

// print warnings
Expand Down Expand Up @@ -57,8 +59,10 @@ function storybookOptionMapper(
frameworkOptions,
context
),
mode: 'static',
outputDir: builderOptions.outputPath,
mode: builderOptions?.['mode'] ?? 'static',
outputDir:
(builderOptions?.['outputDir'] || builderOptions?.['output-dir']) ??
builderOptions.outputPath,
};

return storybookOptions;
Expand Down

0 comments on commit 5e58e92

Please sign in to comment.