From 3d3cc743510a58b6612d30d358ad0ed050641146 Mon Sep 17 00:00:00 2001 From: Jason Jean Date: Wed, 19 Apr 2023 04:01:03 -0400 Subject: [PATCH] fix(storybook): handle @nrwl packages in storybook installed check (#16380) --- .../storybook/src/generators/migrate-7/helper-functions.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/storybook/src/generators/migrate-7/helper-functions.ts b/packages/storybook/src/generators/migrate-7/helper-functions.ts index fcbe6d3c18b4b..1dae3ca522d49 100644 --- a/packages/storybook/src/generators/migrate-7/helper-functions.ts +++ b/packages/storybook/src/generators/migrate-7/helper-functions.ts @@ -617,7 +617,9 @@ export function checkStorybookInstalled(packageJson): boolean { (packageJson.dependencies['@storybook/core-server'] || packageJson.devDependencies['@storybook/core-server']) && (packageJson.dependencies['@nx/storybook'] || - packageJson.devDependencies['@nx/storybook']) + packageJson.devDependencies['@nx/storybook'] || + packageJson.dependencies['@nrwl/storybook'] || + packageJson.devDependencies['@nrwl/storybook']) ); }