From e9d30c89c81daf0e06beab524de7325ddae22aea Mon Sep 17 00:00:00 2001 From: Ian VanSchooten Date: Fri, 4 Nov 2022 14:36:14 -0400 Subject: [PATCH] Update hasDocsOrControls to account for new path --- code/lib/docs-tools/src/hasDocsOrControls.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/lib/docs-tools/src/hasDocsOrControls.ts b/code/lib/docs-tools/src/hasDocsOrControls.ts index d460666d7bc..b1585ee534d 100644 --- a/code/lib/docs-tools/src/hasDocsOrControls.ts +++ b/code/lib/docs-tools/src/hasDocsOrControls.ts @@ -1,7 +1,7 @@ import type { Options } from '@storybook/types'; // `addons/x` is for the monorepo, `addon-x` is for normal usage -const packageRe = /(addons\/|addon-)(docs|controls)/; +const packageRe = /(addons\/|addon-|addon-essentials\/)(docs|controls)/; export const hasDocsOrControls = (options: Options) => options.presetsList?.some((preset) => packageRe.test(preset.name));