Skip to content

Commit

Permalink
fix(storybook): optional chain includes
Browse files Browse the repository at this point in the history
ISSUES CLOSED: nrwl#10482
  • Loading branch information
mandarini committed Jun 3, 2022
1 parent 876d4d8 commit 71084a9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,8 @@ export function configureTsProjectConfig(
}

if (
!tsConfigContent.exclude.includes('**/*.stories.ts') &&
!tsConfigContent.exclude.includes('**/*.stories.js')
!tsConfigContent?.exclude?.includes('**/*.stories.ts') &&
!tsConfigContent?.exclude?.includes('**/*.stories.js')
) {
tsConfigContent.exclude = [
...(tsConfigContent.exclude || []),
Expand Down

0 comments on commit 71084a9

Please sign in to comment.