Skip to content

Commit

Permalink
Use local storybook binary instead
Browse files Browse the repository at this point in the history
  • Loading branch information
kasperpeulen committed Dec 11, 2024
1 parent bb14633 commit b1cc74d
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 b1cc74d

Please sign in to comment.