From 2c87961866f4d56063cde4a366ed03fb1d3c0da6 Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Wed, 3 Apr 2024 14:03:55 +0100 Subject: [PATCH] docs: use new `nuxi module add` command in installation --- README.md | 6 +----- docs/content/0.index.md | 2 +- docs/content/1.guide/0.index.md | 14 ++------------ 3 files changed, 4 insertions(+), 18 deletions(-) diff --git a/README.md b/README.md index b3f04a8..bf4631b 100644 --- a/README.md +++ b/README.md @@ -63,11 +63,7 @@ Demo repo 🧪 : [nuxt-typed-router-demo](https://github.com/victorgarciaesgi/nu ### For Nuxt 3 ```bash -yarn add -D nuxt-typed-router -# or -npm install -D nuxt-typed-router -# or -pnpm install -D nuxt-typed-router +npx nuxi@latest module add typed-router ``` diff --git a/docs/content/0.index.md b/docs/content/0.index.md index 3f2aa19..d79b535 100755 --- a/docs/content/0.index.md +++ b/docs/content/0.index.md @@ -13,7 +13,7 @@ cta: secondary: - Open on GitHub → - https://github.com/victorgarciaesgi/nuxt-typed-router -snippet: npm install nuxt-typed-router +snippet: npx nuxi@latest module add typed-router --- #title diff --git a/docs/content/1.guide/0.index.md b/docs/content/1.guide/0.index.md index 6a4da9b..393f2d9 100755 --- a/docs/content/1.guide/0.index.md +++ b/docs/content/1.guide/0.index.md @@ -1,18 +1,8 @@ # Installation - - -::code-group -```bash [yarn] -yarn add nuxt-typed-router -``` -```bash [pnpm] -pnpm install nuxt-typed-router +```bash +npx nuxi@latest module add typed-router ``` -```bash [npm] -npm install nuxt-typed-router -``` -:: Add the module to `modules` in your `nuxt.config`: