docs: update CLAUDE.md with current project requirements (#8729)

- Update Node.js version requirement to v22.x.x or higher
- Update Yarn version to 4.9.1
- Add electron-vite version (v4.0.0) to build system docs
- Note usage of experimental rolldown-vite
This commit is contained in:
Jason Young 2025-08-01 00:26:56 +08:00 committed by GitHub
parent c76aa03566
commit e76a68ee0d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -5,8 +5,8 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co
## Development Commands
### Environment Setup
- **Prerequisites**: Node.js v20.x.x, Yarn 4.6.0
- **Setup Yarn**: `corepack enable && corepack prepare yarn@4.6.0 --activate`
- **Prerequisites**: Node.js v22.x.x or higher, Yarn 4.9.1
- **Setup Yarn**: `corepack enable && corepack prepare yarn@4.9.1 --activate`
- **Install Dependencies**: `yarn install`
### Development
@ -61,7 +61,8 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co
- **Loaders**: Support for various file formats (PDF, DOCX, EPUB, etc.)
### Build System
- **Electron-Vite**: Development and build tooling
- **Electron-Vite**: Development and build tooling (v4.0.0)
- **Rolldown-Vite**: Using experimental rolldown-vite instead of standard vite
- **Workspaces**: Monorepo structure with `packages/` directory
- **Multiple Entry Points**: Main app, mini window, selection toolbar
- **Styled Components**: CSS-in-JS styling with SWC optimization