mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-02-22 02:24:46 +08:00
chore: add .nvmrc & .node-version for node v22 (#12869)
### What this PR does Adds a `.nvmrc` & `.node-version` files to the project root to specify the Node.js version. Before this PR: No `.nvmrc` / `.node-version` files were present, which could lead to inconsistent Node.js versions across different development environments or CI pipelines. After this PR: Both `.nvmrc` & `.node-version` files are included, pinning the Node.js version to v22. ### Why we need it and why it was done in this way This ensures that all contributors and CI/CD pipelines use the same Node.js version (v22), reducing "works on my machine" issues and ensuring compatibility. The following tradeoffs were made: None. The following alternatives were considered: Defining the engine in package.json only, but `.nvmrc` / `.node-version` are widely supported by tools like nvm, fnm and volta for automatic switching. ### Breaking changes None. ### Special notes for your reviewer Simple chore to standardize the dev environment. ### Release note ```release-note NONE ```
This commit is contained in:
parent
6b9e738278
commit
aa24e9ea50