From 7557c311da1054f9e02261529b8151f23b24c344 Mon Sep 17 00:00:00 2001 From: Yann Braga Date: Wed, 17 Apr 2024 12:58:48 +0200 Subject: [PATCH] update install instructions (#144) * update readme * update package.json version --- README.md | 10 +++++++++- packages/msw-addon/package.json | 2 +- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 651b953..6bc070b 100644 --- a/README.md +++ b/README.md @@ -15,8 +15,16 @@ ### Install MSW and the addon +With npm: + +```sh +npm i msw msw-storybook-addon -D +``` + +Or with yarn: + ```sh -npx storybook@latest add msw-storybook-addon +yarn add msw msw-storybook-addon -D ``` ### Generate service worker for MSW in your public folder. diff --git a/packages/msw-addon/package.json b/packages/msw-addon/package.json index 6673821..5511b0b 100644 --- a/packages/msw-addon/package.json +++ b/packages/msw-addon/package.json @@ -1,6 +1,6 @@ { "name": "msw-storybook-addon", - "version": "2.0.0-beta.2", + "version": "2.0.0", "description": "Mock API requests in Storybook with Mock Service Worker.", "keywords": [ "storybook-addon",