Skip to content

Commit

Permalink
install correct version of framework
Browse files Browse the repository at this point in the history
  • Loading branch information
ndelangen committed Dec 10, 2024
1 parent 92eec54 commit b60cec0
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions code/addons/test/src/postinstall.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { existsSync } from 'node:fs';
import * as fs from 'node:fs/promises';
import { writeFile } from 'node:fs/promises';

import type { types } from 'storybook/internal/babel';
import { traverse } from 'storybook/internal/babel';
import {
JsPackageManagerFactory,
Expand All @@ -11,6 +10,7 @@ import {
loadMainConfig,
serverResolve,
validateFrameworkName,
versions,
} from 'storybook/internal/common';
import { readConfig, writeConfig } from 'storybook/internal/csf-tools';
import { colors, logger } from 'storybook/internal/node-logger';
Expand Down Expand Up @@ -84,9 +84,8 @@ export default async function postInstall(options: PostinstallOptions) {
});

if (out.migrateToExperimentalNextjsVite) {
console.log('running migrateToExperimentalNextjsVite');
await packageManager.addDependencies({ installAsDevDependencies: true }, [
'@storybook/experimental-nextjs-vite',
`@storybook/experimental-nextjs-vite@${versions['@storybook/experimental-nextjs-vite']}`,
]);

await packageManager.removeDependencies({}, ['@storybook/nextjs']);
Expand Down

0 comments on commit b60cec0

Please sign in to comment.