From f401cff3f4a457129a070d62d00a43ebfaaa47ff Mon Sep 17 00:00:00 2001 From: Suneet Tipirneni <77477100+suneettipirneni@users.noreply.github.com> Date: Sun, 4 Feb 2024 15:11:36 -0500 Subject: [PATCH] fix: Correct testing local changes in `CONTRIBUTING.md` (#10066) fix: remove unneeded step for testing local changes Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com> --- .github/CONTRIBUTING.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md index 21b588069..159508322 100644 --- a/.github/CONTRIBUTING.md +++ b/.github/CONTRIBUTING.md @@ -23,9 +23,8 @@ If you want to test changes you've made locally, you can do so by using `pnpm li 1. Create a new directory `mkdir discordjs-test` and move into it `cd discordjs-test` 2. Initialize a new pnpm project `pnpm init` -3. Now link the local discord.js project you cloned earlier `pnpm link {PATH_TO_DISCORDJS_REPO}` -4. Install packages you'd like to test locally `pnpm add discord.js@latest`, `pnpm add @discordjs/rest@latest`, etc. **Note: Make sure you use `latest` tag or else pnpm will try to install the remote package from npm** -5. Import the package in your source code and test them out! +3. Now link the discord.js package from the directory you cloned earlier `pnpm link {PATH_TO_DISCORDJS_REPO}/packages/`. (e.g. `pnpm link ~/discord.js/packages/rest`) +4. Import the package in your source code and test them out! ### Working with TypeScript packages