Skip to content

Commit

Permalink
Postinstall: Fix postinstall script (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
Shaun Evening authored Aug 30, 2023
2 parents 4b30666 + ea9b469 commit 215a406
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/postinstall.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@ const PACKAGE_MANAGER_TO_COMMAND: Record<PackageManagers, string> = {
yarn2: "yarn dlx",
};

const automigrate = async (packageManager: PackageManagers) => {
const automigrate = async ({
packageManager,
}: {
packageManager: PackageManagers;
}) => {
const command = PACKAGE_MANAGER_TO_COMMAND[packageManager];
await spawn(command, ["@storybook/auto-config", "styling"], {
stdio: "inherit",
Expand Down

0 comments on commit 215a406

Please sign in to comment.