Skip to content

Commit

Permalink
Angular: Fix packageJson in CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
shilman committed Jun 19, 2022
1 parent 6517b39 commit 033235f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions frameworks/angular/src/builders/build-storybook/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { from, Observable, of, throwError } from 'rxjs';
import type { CLIOptions } from '@storybook/core-common';
import { catchError, map, mapTo, switchMap } from 'rxjs/operators';
import { sync as findUpSync } from 'find-up';
import { sync as readUpSync } from 'read-pkg-up';
import {
BrowserBuilderOptions,
ExtraEntryPoint,
Expand Down Expand Up @@ -66,6 +67,7 @@ function commandBuilder(
} = options;

const standaloneOptions: StandaloneOptions = {
packageJson: readUpSync({ cwd: __dirname }).packageJson,
configDir,
docs,
loglevel,
Expand Down
2 changes: 2 additions & 0 deletions frameworks/angular/src/builders/start-storybook/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import { from, Observable, of } from 'rxjs';
import type { CLIOptions } from '@storybook/core-common';
import { map, switchMap, mapTo } from 'rxjs/operators';
import { sync as findUpSync } from 'find-up';
import { sync as readUpSync } from 'read-pkg-up';

import { buildDevStandalone } from '@storybook/core-server';
import type { StandaloneOptions } from '../utils/standalone-options';
Expand Down Expand Up @@ -81,6 +82,7 @@ function commandBuilder(
} = options;

const standaloneOptions: StandaloneOptions = {
packageJson: readUpSync({ cwd: __dirname }).packageJson,
ci,
configDir,
docs,
Expand Down

0 comments on commit 033235f

Please sign in to comment.