Skip to content

Commit

Permalink
fix(storybook): optional references in tsconfig (#9561)
Browse files Browse the repository at this point in the history
  • Loading branch information
mandarini committed Mar 28, 2022
1 parent 8e09875 commit 0155372
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -249,8 +249,8 @@ function configureTsSolutionConfig(
const tsConfigContent = readJson<TsConfig>(tree, tsConfigPath);

if (
!tsConfigContent.references
.map((reference) => reference.path)
!tsConfigContent?.references
?.map((reference) => reference.path)
.includes('./.storybook/tsconfig.json')
) {
tsConfigContent.references = [
Expand Down

0 comments on commit 0155372

Please sign in to comment.