Skip to content

Commit

Permalink
Forward the yes flag
Browse files Browse the repository at this point in the history
  • Loading branch information
kasperpeulen committed Dec 11, 2024
1 parent 3fbd948 commit 36fab90
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions code/addons/a11y/src/postinstall.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// eslint-disable-next-line depend/ban-dependencies
import type { PostinstallOptions } from '@storybook/cli/src/add';

import { execa } from 'execa';

const $ = execa({
Expand All @@ -8,6 +9,6 @@ const $ = execa({
reject: false,
});

export default async function postInstall() {
await $`storybook automigrate addonA11yAddonTest`;
export default async function postinstall(options: PostinstallOptions) {
await $`storybook automigrate addonA11yAddonTest ${options.yes ? '--yes' : ''}`;
}

0 comments on commit 36fab90

Please sign in to comment.