Skip to content

Commit 36bf5fe

Browse files
AaronHamilton965rahulio96
andauthoredJul 17, 2023
docs: Added steps for using npm/npx locally to CONTRIBUTING.md (#6643)
Co-authored-by: Rahul <122141535+rahulio96@users.noreply.github.com>
1 parent 02c7ddb commit 36bf5fe

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed
 

‎CONTRIBUTING.md

+22
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,28 @@ We use [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/).
4848

4949
We use [`tap`](https://node-tap.org/) for testing & expect that every new feature or bug fix comes with corresponding tests that validate the solutions. Tap also reports on code coverage and it will fail if that drops below 100%.
5050

51+
To run your repository's version of the npm cli on your local machine use the following commands:
52+
53+
**npm commands:**
54+
```bash
55+
node . <command>
56+
```
57+
58+
**npx commands:**
59+
```bash
60+
node . exec
61+
```
62+
63+
For example instead of:
64+
```bash
65+
npm exec -- <package>
66+
```
67+
Use:
68+
```bash
69+
node . exec -- <package>
70+
```
71+
72+
5173
## Performance & Benchmarks
5274

5375
We've set up an automated [benchmark](https://github.com/npm/benchmarks) integration that will run against all Pull Requests; Posting back a comment with the results of the run.

0 commit comments

Comments
 (0)
Please sign in to comment.