From 0a2132b38fea27afec83ca3044bc4e3a607f68ca Mon Sep 17 00:00:00 2001 From: Hiroshi Ogawa Date: Thu, 17 Oct 2024 20:10:43 +0900 Subject: [PATCH] chore: update repo setup instruction in CONTRIBUTING.md (#6729) --- CONTRIBUTING.md | 6 ++++-- package.json | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 82ec935dc554..0746ea65550a 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -15,11 +15,13 @@ To develop and test `vitest` package: 1. Run `pnpm install` in `vitest`'s root folder -2. Run `pnpm run dev` to build sources in watch mode +2. Run `pnpm run build` to build all monorepo packages + - after this, you can use `pnpm run dev` to rebuild packages as you modify code 3. Run - `pnpm run test` to run core tests - - `pnpm run test:all` to run all the suite + - `pnpm run test:ci` to run all the suite + - `cd test/(dir) && pnpm run test` to run a specific test suite > 💡 If you use VS Code, you can hit `⇧ ⌘ B` or `Ctrl + Shift + B` to launch all the necessary dev tasks. diff --git a/package.json b/package.json index 4cb3f527c7f6..b13a74aeabc2 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ "node": "^18.0.0 || >=20.0.0" }, "scripts": { - "ci": "ni && nr typecheck && nr lint && nr build && nr test:all", + "ci": "ni && nr typecheck && nr lint && nr build && nr test:ci", "ci:docs": "pnpm run build && pnpm run docs:build", "build": "pnpm -r --filter @vitest/ui --filter='./packages/**' run build", "dev": "NODE_OPTIONS=\"--max-old-space-size=8192\" pnpm -r --parallel --filter='./packages/**' run dev",