From 7f283939094982d94b62c89b7ef43b76487bba15 Mon Sep 17 00:00:00 2001 From: Artem Zakharchenko Date: Fri, 17 Jul 2026 14:03:13 +0200 Subject: [PATCH] docs: fix the usage command --- README.md | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 8a56b98..fc352f8 100644 --- a/README.md +++ b/README.md @@ -5,8 +5,16 @@ ## Usage +You can create a new SvelteKit project with this add-on using the following command: + +```sh +npx sv create --add @msw/sveltekit +``` + +Or integrate MSW add-in into an existing project with this one: + ```shell -npx sv add @msw +npx sv add @msw/sveltekit ``` ## What you get @@ -26,7 +34,7 @@ Choose where MSW should run. This is a multiselect option. Default: `browser,node` ```shell -npx sv add @msw="environments:browser,node" +npx sv add @msw/sveltekit="environments:browser,node" ``` ## Browser worker