From 2799990eb01f0dac907356c3f102b7110283a0f2 Mon Sep 17 00:00:00 2001 From: abeer0 <47961062+iiio2@users.noreply.github.com> Date: Tue, 18 Aug 2026 12:47:12 +0600 Subject: [PATCH] docs: fix pnpm overrides link and instructions (#10982) --- CONTRIBUTING.md | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index f65b954c5..828d2bb34 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -47,17 +47,19 @@ If you want to use break point and explore code execution you can use the ["Run ## Testing Vitest against external packages -You may wish to test your locally-modified copy of Vitest against another package that is using it. For pnpm, after building Vitest, you can use [`pnpm.overrides`](https://pnpm.io/9.x/package_json#pnpmoverrides). Please note that `pnpm.overrides` must be specified in the root `package.json` and you must first list the package as a dependency in the root `package.json`: +You may wish to test your locally-modified copy of Vitest against another package that is using it. For pnpm, after building Vitest, you can use [`overrides`](https://pnpm.io/settings/dependency-resolution#overrides). Please note that `overrides` must be specified at the root of the project, in `pnpm-workspace.yaml`: + +```yaml +overrides: + vitest: 'link:../path/to/vitest/packages/vitest' +``` + +You must also first list the package as a dependency in the root `package.json`: ```json { "dependencies": { "vitest": "*" - }, - "pnpm": { - "overrides": { - "vitest": "link:../path/to/vitest/packages/vitest" - } } } ``` -- 2.51.2