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