Skip to content

Commit 0448317

Browse files
authored
fix(storybook): dont fail if targets dont exist (#18745)
1 parent 078cf9a commit 0448317

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/storybook/src/generators/configuration/lib/util-functions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ export function updateLintConfig(tree: Tree, schema: StorybookConfigureSchema) {
371371
const { name: projectName } = schema;
372372

373373
const { targets, root } = readProjectConfiguration(tree, projectName);
374-
const tslintTargets = Object.values(targets).filter(
374+
const tslintTargets = Object.values(targets ?? {}).filter(
375375
(target) => target.executor === '@angular-devkit/build-angular:tslint'
376376
);
377377

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy