mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-09 00:19:13 +08:00
Use tsconfig.doc.ts also for Storybook dev
This commit is contained in:
parent
9034ba93a2
commit
aec125a054
@ -67,11 +67,13 @@ export type StorybookBuilderOutput = JsonObject & BuilderOutput & {};
|
||||
const commandBuilder: BuilderHandlerFn<StorybookBuilderOptions> = (options, context) => {
|
||||
const builder = from(setup(options, context)).pipe(
|
||||
switchMap(({ tsConfig }) => {
|
||||
const docTSConfig = findUpSync('tsconfig.doc.json', { cwd: options.configDir });
|
||||
|
||||
const runCompodoc$ = options.compodoc
|
||||
? runCompodoc(
|
||||
{
|
||||
compodocArgs: [...options.compodocArgs, ...(options.quiet ? ['--silent'] : [])],
|
||||
tsconfig: tsConfig,
|
||||
tsconfig: docTSConfig ?? tsConfig,
|
||||
},
|
||||
context
|
||||
).pipe(mapTo({ tsConfig }))
|
||||
|
Loading…
x
Reference in New Issue
Block a user