From c948c1b43350fba818d7eceec6237cd2d467c8a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=B9=E9=93=81=E8=9B=8B?= <44939961+NieZhuZhu@users.noreply.github.com> Date: Wed, 29 Jul 2026 17:55:02 +0800 Subject: [PATCH] docs: pair the two npm-only command blocks in CLAUDE.md with their yarn form (#1439) Co-authored-by: NieZhuZhu --- CLAUDE.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/CLAUDE.md b/CLAUDE.md index 0074f22d0..b22d6d98c 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -475,15 +475,23 @@ The project includes a browser build at `dist/index.browser.js` that can be used ```bash # Production build npm run build +# or +yarn run build # Development watch mode npm run watch +# or +yarn run watch # Build TypeScript typings npm run build:typings +# or +yarn run build:typings # Linting npm run eslint +# or +yarn run eslint ``` ## Testing @@ -1184,24 +1192,32 @@ The project uses **Husky** for git hooks: 1. **Use watch mode during development**: ```bash npm run watch + # or + yarn run watch ``` This rebuilds automatically when you save files. 2. **Run specific tests during development**: ```bash npm run test:dev + # or + yarn run test:dev ``` Faster than full test suite. 3. **Check linting before committing**: ```bash npm run eslint + # or + yarn run eslint ``` Fix issues before the pre-commit hook runs. 4. **Test memory usage**: ```bash npm run test:mocha-memory-performance + # or + yarn run test:mocha-memory-performance ``` Ensure your changes don't cause memory issues. @@ -1209,6 +1225,9 @@ The project uses **Husky** for git hooks: ```bash npm run test:mocha-coverage npm run test:mocha-coverage:report + # or + yarn run test:mocha-coverage + yarn run test:mocha-coverage:report ``` Check test coverage in the generated `coverage/` directory.