From 15e88012eac954a2101eb88c5dcea54a81ee636a Mon Sep 17 00:00:00 2001
From: HoshinoSuzumi <master@uniiem.com>
Date: Wed, 20 Nov 2024 14:40:58 +0800
Subject: [PATCH] =?UTF-8?q?=F0=9F=92=9A=20ci=20use=20pnpm?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .github/workflows/ci.yml | 16 +++++++++++-----
 docs/nuxt.config.ts      |  5 ++---
 2 files changed, 13 insertions(+), 8 deletions(-)

diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index c44c8e0..d65750b 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -19,11 +19,14 @@ jobs:
         with:
           node-version: 20
 
+      - name: setup pnpm
+        uses: pnpm/action-setup@v4.0.0
+
       - name: Install dependencies
-        run: npx nypm@latest i
+        run: pnpm i
 
       - name: Lint
-        run: npm run lint
+        run: pnpm lint
 
   test:
     runs-on: ubuntu-latest
@@ -35,11 +38,14 @@ jobs:
         with:
           node-version: 20
 
+      - name: setup pnpm
+        uses: pnpm/action-setup@v4.0.0
+
       - name: Install dependencies
-        run: npx nypm@latest i
+        run: pnpm i
 
       - name: Playground prepare
-        run: npm run dev:prepare
+        run: pnpm dev:prepare
 
       - name: Test
-        run: npm run test
+        run: pnpm test
diff --git a/docs/nuxt.config.ts b/docs/nuxt.config.ts
index f12c30a..dd5138f 100644
--- a/docs/nuxt.config.ts
+++ b/docs/nuxt.config.ts
@@ -3,7 +3,6 @@ import module from '../src/module'
 
 // https://nuxt.com/docs/api/configuration/nuxt-config
 export default defineNuxtConfig({
-
   modules: ['@nuxt/content', '@nuxt/fonts', '@nuxtjs/color-mode', module],
   devtools: { enabled: true },
   colorMode: {
@@ -26,12 +25,12 @@ export default defineNuxtConfig({
   },
   routeRules: {
     '/components': { redirect: '/components/button' },
-  }, compatibilityDate: '2024-04-03',
+  },
+  compatibilityDate: '2024-04-03',
   typescript: {
     includeWorkspace: true,
   },
   rayui: {
-    // @ts-ignore
     globalComponents: true,
     safeColors: ['amber', 'emerald', 'red', 'sky', 'violet', 'cyan'],
   },