From 13069256cf92957a94a128b1a3080012eb8ddf80 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABtan=20Maisse?= Date: Tue, 25 May 2021 07:31:17 +0200 Subject: [PATCH] docs: fix code snippet types and make npm/yarn snippet consistent --- MIGRATION.md | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/MIGRATION.md b/MIGRATION.md index ef9ba80554c..abdd21af526 100644 --- a/MIGRATION.md +++ b/MIGRATION.md @@ -168,16 +168,20 @@ Storybook 6.2 introduced **experimental** webpack5 support for building user com If you're upgrading from 6.2 and already using the experimental webpack5 feature, this might be a breaking change (hence the 'experimental' label) and you should try adding the manager builder: -``` +```shell yarn add @storybook/manager-webpack5 --dev +# Or +npm install @storybook/manager-webpack5 --save-dev ``` ### Angular 12 upgrade Storybook 6.3 supports Angular 12 out of the box when you install it fresh. However, if you're upgrading your project from a previous version, you'll need to do the following steps to force Storybook to use webpack 5 for building your project: -```js -npm install @storybook/builder-webpack5 --save-dev # or yarn +```shell +yarn add @storybook/builder-webpack5 --dev +# Or +npm install @storybook/builder-webpack5 --save-dev ``` Then edit your `.storybook/main.js` config: