fix(storybook): storybook migration fails if targets not defined on a project (#7475)
This commit is contained in:
parent
0fe1614505
commit
c87dfad2df
@ -26,9 +26,11 @@ export default async function addStyledJsxTypings(tree: Tree) {
|
||||
),
|
||||
};
|
||||
|
||||
const storybookExecutor = Object.keys(targets).find(
|
||||
(x) => targets[x].executor === '@nrwl/storybook:storybook'
|
||||
);
|
||||
const storybookExecutor =
|
||||
targets &&
|
||||
Object.keys(targets).find(
|
||||
(x) => targets[x].executor === '@nrwl/storybook:storybook'
|
||||
);
|
||||
|
||||
const hasStorybookConfig =
|
||||
storybookExecutor && tree.exists(paths.tsConfigStorybook);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user