fix sandbox command

This commit is contained in:
Yann Braga 2025-02-05 16:40:53 +01:00
parent 08bb05365c
commit e21a07bc43

View File

@ -146,16 +146,16 @@ export const sandbox: Task = {
await setImportMap(details.sandboxDir);
await runMigrations(details, options);
await extendPreview(details, options);
const { JsPackageManagerFactory } = await import('../../code/core/src/common');
const packageManager = JsPackageManagerFactory.getPackageManager({}, details.sandboxDir);
await packageManager.installDependencies();
await runMigrations(details, options);
await extendPreview(details, options);
logger.info(`✅ Storybook sandbox created at ${details.sandboxDir}`);
},
};