From d7f0846dadccf6f4e7da88148152e80709e6b4ce Mon Sep 17 00:00:00 2001 From: Mehak Date: Thu, 21 May 2026 20:11:20 +0530 Subject: [PATCH] docs: require Node >=22.11.0 and update shared package test instructions --- CONTRIBUTING.md | 15 +++++++++++++-- README.md | 2 +- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 0f95620b..cf57fcef 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -12,7 +12,7 @@ ### Prerequisites -- **Node.js** >= 20 +- **Node.js** >= 22.11.0 (required for the full monorepo; use `nvm` or `volta` to manage versions) - **pnpm** >= 9 - **Docker** & Docker Compose - **React Native** dev environment — follow the [official setup guide](https://reactnative.dev/docs/environment-setup) @@ -68,7 +68,18 @@ pnpm --filter @devcard/mobile test Currently, the web app does not define a test script. #### packages/shared -The shared package does not include test scripts. It only provides linting and type checking. +The `@devcard/shared` package includes unit tests run with Vitest. To run them: + +```bash +pnpm --filter @devcard/shared test +``` + +It also provides linting and type checking via: + +```bash +pnpm --filter @devcard/shared lint +pnpm --filter @devcard/shared typecheck +``` ## Project Structure diff --git a/README.md b/README.md index 136600f0..5d862271 100644 --- a/README.md +++ b/README.md @@ -52,7 +52,7 @@ Each exchange is manual, error-prone, and slow. DevCard fixes this. ### Prerequisites -- Node.js >= 20 +- Node.js >= 22.11.0 (required for the full monorepo; use `nvm` or `volta` to manage versions) - pnpm >= 9 - Docker & Docker Compose - React Native development environment ([setup guide](https://reactnative.dev/docs/environment-setup))