From 5e024807d7ff5e3e58ae7fa59424cb6710d88351 Mon Sep 17 00:00:00 2001 From: Yann Braga Date: Thu, 5 Oct 2023 12:13:19 +0200 Subject: [PATCH] always run registry when generating angular sandboxes --- scripts/tasks/sandbox.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/scripts/tasks/sandbox.ts b/scripts/tasks/sandbox.ts index 117d10948b51..1f63527ca056 100644 --- a/scripts/tasks/sandbox.ts +++ b/scripts/tasks/sandbox.ts @@ -11,11 +11,17 @@ const logger = console; export const sandbox: Task = { description: 'Create the sandbox from a template', dependsOn: ({ template }, { link }) => { + let shouldLink = link; + + if (template.expected.framework === '@storybook/angular') { + shouldLink = false; + } + if ('inDevelopment' in template && template.inDevelopment) { return ['run-registry', 'generate']; } - if (link) { + if (shouldLink) { return ['compile']; }