From c7e6e30c7e394583251926af21e577957e8e756a Mon Sep 17 00:00:00 2001 From: "Soheil Nazari [CHECK24]" <113988347+s0h311@users.noreply.github.com> Date: Sun, 8 Dec 2024 22:36:10 +0100 Subject: [PATCH 1/4] 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 --- docs/guide/getting-started/installation.md | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/docs/guide/getting-started/installation.md b/docs/guide/getting-started/installation.md index 20283adb..a2325546 100644 --- a/docs/guide/getting-started/installation.md +++ b/docs/guide/getting-started/installation.md @@ -2,24 +2,36 @@ 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 ```bash [npm] -npm i -D @sidebase/nuxt-auth +npm i @sidebase/nuxt-auth ``` ```bash [pnpm] -pnpm i -D @sidebase/nuxt-auth +pnpm i @sidebase/nuxt-auth ``` ```bash [yarn] -yarn add --dev @sidebase/nuxt-auth +yarn add @sidebase/nuxt-auth ``` ::: From 92e6422e7470ef28677566c969219277e5876af1 Mon Sep 17 00:00:00 2001 From: Soheil Nazari Date: Sun, 15 Dec 2024 10:38:45 +0100 Subject: [PATCH 2/4] revert to dev dep --- docs/guide/getting-started/installation.md | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/docs/guide/getting-started/installation.md b/docs/guide/getting-started/installation.md index a2325546..26d6d517 100644 --- a/docs/guide/getting-started/installation.md +++ b/docs/guide/getting-started/installation.md @@ -23,15 +23,15 @@ yarn dlx nuxi module add sidebase-auth ::: code-group ```bash [npm] -npm i @sidebase/nuxt-auth +npm i -D @sidebase/nuxt-auth ``` ```bash [pnpm] -pnpm i @sidebase/nuxt-auth +pnpm i -D @sidebase/nuxt-auth ``` ```bash [yarn] -yarn add @sidebase/nuxt-auth +yarn add -D @sidebase/nuxt-auth ``` ::: @@ -42,10 +42,8 @@ Add NuxtAuth to your `nuxt.config`: ```ts [nuxt.config.ts] export default defineNuxtConfig({ - modules: [ - '@sidebase/nuxt-auth', - ], -}) + modules: ["@sidebase/nuxt-auth"], +}); ``` ::: From 379c3337ca32792e0394880801631e05fc0d8532 Mon Sep 17 00:00:00 2001 From: Marsel Shaikhin <18054980+phoenix-ru@users.noreply.github.com> Date: Thu, 19 Dec 2024 15:51:03 +0100 Subject: [PATCH 3/4] Update docs/guide/getting-started/installation.md --- docs/guide/getting-started/installation.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/guide/getting-started/installation.md b/docs/guide/getting-started/installation.md index 26d6d517..ed820251 100644 --- a/docs/guide/getting-started/installation.md +++ b/docs/guide/getting-started/installation.md @@ -42,8 +42,9 @@ Add NuxtAuth to your `nuxt.config`: ```ts [nuxt.config.ts] export default defineNuxtConfig({ - modules: ["@sidebase/nuxt-auth"], -}); + modules: [ + '@sidebase/nuxt-auth'], +}) ``` ::: From 98f7aee8d88c6201c98d982a9d17ee63456910f9 Mon Sep 17 00:00:00 2001 From: Marsel Shaikhin <18054980+phoenix-ru@users.noreply.github.com> Date: Thu, 19 Dec 2024 15:51:27 +0100 Subject: [PATCH 4/4] Update docs/guide/getting-started/installation.md --- docs/guide/getting-started/installation.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/guide/getting-started/installation.md b/docs/guide/getting-started/installation.md index ed820251..7fde490a 100644 --- a/docs/guide/getting-started/installation.md +++ b/docs/guide/getting-started/installation.md @@ -43,7 +43,8 @@ Add NuxtAuth to your `nuxt.config`: ```ts [nuxt.config.ts] export default defineNuxtConfig({ modules: [ - '@sidebase/nuxt-auth'], + '@sidebase/nuxt-auth' + ], }) ```