@nx/storybook
Version:
22 lines (21 loc) • 893 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = migrateToStorybook10;
const tslib_1 = require("tslib");
const output_1 = require("nx/src/utils/output");
const migrate_10_1 = tslib_1.__importDefault(require("../../generators/migrate-10/migrate-10"));
async function migrateToStorybook10(tree) {
output_1.output.log({
title: 'Migrating Storybook to v10',
bodyLines: [
`🚀 This migration will update your Storybook configuration to v10.`,
`It will call the @nx/storybook:migrate-10 generator for you.`,
`You can read more about the migration and how this generator works here:`,
`https://nx.dev/nx-api/storybook/generators/migrate-10`,
],
});
await (0, migrate_10_1.default)(tree, {
autoAcceptAllPrompts: true,
skipAiInstructions: true,
});
}