From dd6d60468d10d05c49fe42d37fe1a019b909bce3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ari=20Perkki=C3=B6?= Date: Tue, 27 Jun 2023 15:23:24 +0300 Subject: [PATCH] docs: local package linking (#3678) --- CONTRIBUTING.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index cf4ae0b35c90..20b2cf95f4cd 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -58,6 +58,12 @@ You may wish to test your locally-modified copy of Vitest against another packag And re-run `pnpm install` to link the package. +Add a `.npmrc` file with following line next to the `package.json`: + +```sh +VITE_NODE_DEPS_MODULE_DIRECTORIES=/node_modules/,/packages/ +``` + ## Pull Request Guidelines - Checkout a topic branch from a base branch, e.g. `main`, and merge back against that branch.