From 84d8b7b7d88a0898474012ecfa7b2d3961403401 Mon Sep 17 00:00:00 2001 From: Charles7c Date: Mon, 14 Sep 2026 10:10:38 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20pnpm=20install=20=E6=8A=A5?= =?UTF-8?q?=E9=94=99=E5=B9=B6=E8=A1=A5=E5=85=85=E6=A0=B9=E8=B7=AF=E5=BE=84?= =?UTF-8?q?=E5=85=A5=E5=8F=A3=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - pnpm-workspace.yaml 增加 packages 字段,修复 pnpm 9 的 packages field missing or empty 报错 - 新增 index.html,访问根路径自动跳转到 list.html 排行榜页 - vite.config.ts 构建入口加入 index.html - .gitignore 忽略 .idea,并从暂存区移除已跟踪的 .idea 文件 --- .gitignore | 1 + index.html | 13 +++++++++++++ pnpm-workspace.yaml | 3 +++ vite.config.ts | 1 + 4 files changed, 18 insertions(+) create mode 100644 index.html diff --git a/.gitignore b/.gitignore index 2583cf8..8491156 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ node_modules dist +.idea .DS_Store *.local .env diff --git a/index.html b/index.html new file mode 100644 index 0000000..587cccb --- /dev/null +++ b/index.html @@ -0,0 +1,13 @@ + + + + + + + Token 排行榜 + + + + 正在跳转到 Token 排行榜…… + + diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index 5ed0b5a..b3aad37 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -1,2 +1,5 @@ +# 单包项目:pnpm 9 要求 workspace 清单必须包含 packages 字段 +packages: + - '.' allowBuilds: esbuild: true diff --git a/vite.config.ts b/vite.config.ts index 470dfbd..0e678e8 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -12,6 +12,7 @@ export default defineConfig(({ mode }) => { build: { rollupOptions: { input: { + index: resolve(__dirname, 'index.html'), list: resolve(__dirname, 'list.html'), groups: resolve(__dirname, 'groups.html'), },