Skip to content

Commit

Permalink
Merge pull request #30021 from storybookjs/kasper/use-local
Browse files Browse the repository at this point in the history
Addon Test: Use local storybook binary instead
  • Loading branch information
kasperpeulen authored Dec 12, 2024
2 parents 36d2413 + b1cc74d commit db024c7
Showing 1 changed file with 4 additions and 17 deletions.
21 changes: 4 additions & 17 deletions code/addons/test/src/postinstall.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import { readConfig, writeConfig } from 'storybook/internal/csf-tools';
import { colors, logger } from 'storybook/internal/node-logger';

// eslint-disable-next-line depend/ban-dependencies
import { execa } from 'execa';
import { $ } from 'execa';
import { findUp } from 'find-up';
import { dirname, extname, join, relative, resolve } from 'pathe';
import picocolors from 'picocolors';
Expand Down Expand Up @@ -227,22 +227,9 @@ export default async function postInstall(options: PostinstallOptions) {
}

if (shouldUninstall) {
await execa(
packageManager.getRemoteRunCommand(),
[
'storybook',
'remove',
addonInteractionsName,
'--package-manager',
options.packageManager,
'--config-dir',
options.configDir,
],
{
shell: true,
stdio: 'inherit',
}
);
await $({
stdio: 'inherit',
})`storybook remove ${addonInteractionsName} --package-manager ${options.packageManager} --config-dir ${options.configDir}`;
}
}

Expand Down

0 comments on commit db024c7

Please sign in to comment.