Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix next #20106

Merged
merged 2 commits into from Dec 6, 2022
Merged

Fix next #20106

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
9 changes: 8 additions & 1 deletion scripts/tasks/sandbox-parts.ts
Expand Up @@ -101,7 +101,14 @@ export const install: Task['run'] = async ({ sandboxDir, template }, { link, dry
);
}

await executeCLIStep(steps.init, { cwd, optionValues: { debug, yes: true }, dryRun, debug });
const extra = template.expected.renderer === '@storybook/html' ? { type: 'html' } : {};

await executeCLIStep(steps.init, {
cwd,
optionValues: { debug, yes: true, ...extra },
dryRun,
debug,
});

const mainConfig = await readMainConfig({ cwd });
// Enable or disable Storybook features
Expand Down
1 change: 1 addition & 0 deletions scripts/utils/cli-step.ts
Expand Up @@ -33,6 +33,7 @@ export const steps = {
icon: '⚙️',
options: createOptions({
yes: { type: 'boolean', inverse: true },
type: { type: 'string' },
debug: { type: 'boolean' },
}),
},
Expand Down