mirror of
https://github.com/geekgeekrun/geekgeekrun.git
synced 2026-09-09 01:17:06 +08:00
chore: 兼容 pnpm v10,移除过严的版本上限限制
- 放宽 engines.pnpm 从 >=8.15.9 <9.0.0 至 >=8.15.9 - 添加 pnpm.onlyBuiltDependencies 以满足 pnpm v10 构建脚本审批要求 - 迁移 pnpm-lock.yaml 从格式 v6 到 v9(pnpm v10 自动生成) - 更新 CLAUDE.md,移除已过时的 proto run pnpm 绕行方案 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
91b741394b
commit
3aeddd72f7
@@ -4,11 +4,11 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co
|
||||
|
||||
## Package Manager
|
||||
|
||||
**Always use `proto run pnpm -- <args>`** instead of bare `pnpm`. The project requires pnpm `>=8.15.9 <9.0.0`; the system pnpm (10.x) is incompatible and will cause errors.
|
||||
Use bare `pnpm` (v8 or v10+ both work). The `engines.pnpm` constraint is `>=8.15.9`.
|
||||
|
||||
```bash
|
||||
proto run pnpm -- install
|
||||
proto run pnpm -- -F geekgeekrun-ui dev
|
||||
pnpm install
|
||||
pnpm -F geekgeekrun-ui dev
|
||||
```
|
||||
|
||||
## Key Commands
|
||||
@@ -17,20 +17,20 @@ All UI development happens in `packages/ui`. The `dev`/`build`/`start` scripts a
|
||||
|
||||
```bash
|
||||
# Electron app (main entry point for users)
|
||||
proto run pnpm -- -F geekgeekrun-ui dev # development mode
|
||||
proto run pnpm -- -F geekgeekrun-ui build # production build
|
||||
proto run pnpm -- -F geekgeekrun-ui build:win # Windows installer
|
||||
pnpm -F geekgeekrun-ui dev # development mode
|
||||
pnpm -F geekgeekrun-ui build # production build
|
||||
pnpm -F geekgeekrun-ui build:win # Windows installer
|
||||
|
||||
# Lint & format (run from packages/ui)
|
||||
proto run pnpm -- -F geekgeekrun-ui lint # eslint --fix
|
||||
proto run pnpm -- -F geekgeekrun-ui format # prettier --write
|
||||
pnpm -F geekgeekrun-ui lint # eslint --fix
|
||||
pnpm -F geekgeekrun-ui format # prettier --write
|
||||
|
||||
# Type checking (run from packages/ui)
|
||||
proto run pnpm -- -F geekgeekrun-ui typecheck # both node + web
|
||||
pnpm -F geekgeekrun-ui typecheck # both node + web
|
||||
|
||||
# SQLite plugin (must build before UI if changed)
|
||||
proto run pnpm -- -F @geekgeekrun/sqlite-plugin build
|
||||
proto run pnpm -- -F @geekgeekrun/sqlite-plugin dev # watch mode
|
||||
pnpm -F @geekgeekrun/sqlite-plugin build
|
||||
pnpm -F @geekgeekrun/sqlite-plugin dev # watch mode
|
||||
```
|
||||
|
||||
## Architecture
|
||||
|
||||
Reference in New Issue
Block a user