From 0d9ae7a9dd7a7136a4713b37405442b6eeda1069 Mon Sep 17 00:00:00 2001 From: "Soheil Nazari [CHECK24]" <113988347+s0h311@users.noreply.github.com> Date: Thu, 19 Dec 2024 15:54:53 +0100 Subject: [PATCH] docs: update installation.md (#955) * docs: update installation.md, @sidebase/nuxt-auth should be installed as regular dep @sidebase/nuxt-auth should be installed as a regular dependency instead of a dev dependency. Also added additional scripts for yarn and pnpm * revert to dev dep * Update docs/guide/getting-started/installation.md * Update docs/guide/getting-started/installation.md --------- Co-authored-by: Marsel Shaikhin <18054980+phoenix-ru@users.noreply.github.com> --- docs/guide/getting-started/installation.md | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/docs/guide/getting-started/installation.md b/docs/guide/getting-started/installation.md index 20283adb..7fde490a 100644 --- a/docs/guide/getting-started/installation.md +++ b/docs/guide/getting-started/installation.md @@ -2,10 +2,22 @@ You can install NuxtAuth using nuxi: -```bash -npx nuxi@latest module add sidebase-auth +::: code-group + +```bash [npm] +npx nuxi module add sidebase-auth +``` + +```bash [pnpm] +pnpm exec nuxi module add sidebase-auth ``` +```bash [yarn] +yarn dlx nuxi module add sidebase-auth +``` + +::: + ::: details Manual installation ::: code-group @@ -19,7 +31,7 @@ pnpm i -D @sidebase/nuxt-auth ``` ```bash [yarn] -yarn add --dev @sidebase/nuxt-auth +yarn add -D @sidebase/nuxt-auth ``` ::: @@ -31,7 +43,7 @@ Add NuxtAuth to your `nuxt.config`: ```ts [nuxt.config.ts] export default defineNuxtConfig({ modules: [ - '@sidebase/nuxt-auth', + '@sidebase/nuxt-auth' ], }) ```