Skip to content

Commit

Permalink
Merge pull request #20608 from storybookjs/angular-builder-fix-docs-mode
Browse files Browse the repository at this point in the history
git remote add ssams git@github.com:ssams/storybook.git git fetch ssams angular-builder-fix-docs-mode git switch --track ssams/angular-builder-fix-docs-mode
  • Loading branch information
ndelangen authored and shilman committed Jan 26, 2023
1 parent dbbb97d commit 1a2164f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
7 changes: 4 additions & 3 deletions app/angular/src/builders/build-storybook/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,15 @@ import { buildStandaloneErrorHandler } from '../utils/build-standalone-errors-ha
export type StorybookBuilderOptions = JsonObject & {
browserTarget?: string | null;
tsConfig?: string;
docsMode: boolean;
compodoc: boolean;
compodocArgs: string[];
styles?: ExtraEntryPoint[];
stylePreprocessorOptions?: StylePreprocessorOptions;
} & Pick<
// makes sure the option exists
CLIOptions,
'outputDir' | 'configDir' | 'loglevel' | 'quiet' | 'docs' | 'webpackStatsJson'
'outputDir' | 'configDir' | 'loglevel' | 'quiet' | 'webpackStatsJson'
>;

export type StorybookBuilderOutput = JsonObject & BuilderOutput & {};
Expand All @@ -58,7 +59,7 @@ function commandBuilder(
stylePreprocessorOptions,
styles,
configDir,
docs,
docsMode,
loglevel,
outputDir,
quiet,
Expand All @@ -67,7 +68,7 @@ function commandBuilder(

const standaloneOptions: StandaloneOptions = {
configDir,
docs,
docsMode,
loglevel,
outputDir,
quiet,
Expand Down
6 changes: 3 additions & 3 deletions app/angular/src/builders/start-storybook/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import { buildStandaloneErrorHandler } from '../utils/build-standalone-errors-ha
export type StorybookBuilderOptions = JsonObject & {
browserTarget?: string | null;
tsConfig?: string;
docsMode: boolean;
compodoc: boolean;
compodocArgs: string[];
styles?: ExtraEntryPoint[];
Expand All @@ -41,7 +42,6 @@ export type StorybookBuilderOptions = JsonObject & {
| 'smokeTest'
| 'ci'
| 'quiet'
| 'docs'
>;

export type StorybookBuilderOutput = JsonObject & BuilderOutput & {};
Expand Down Expand Up @@ -69,7 +69,7 @@ function commandBuilder(
styles,
ci,
configDir,
docs,
docsMode,
host,
https,
port,
Expand All @@ -83,7 +83,7 @@ function commandBuilder(
const standaloneOptions: StandaloneOptions = {
ci,
configDir,
docs,
docsMode,
host,
https,
port,
Expand Down

0 comments on commit 1a2164f

Please sign in to comment.