Skip to content

Commit

Permalink
docs: fix and update scoped configuration example (#7742)
Browse files Browse the repository at this point in the history
The [Auth related
configuration](https://docs.npmjs.com/cli/v10/configuring-npm/npmrc#auth-related-configuration)
docs contains a mistakenly commented configuration line.
This PR makes the scope examples more clear by adding newlines and
uncomment the valid configuration line.
  • Loading branch information
demedos authored Aug 21, 2024
1 parent ed4add1 commit 24d5350
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docs/lib/content/configuring-npm/npmrc.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,13 @@ _authToken=MYTOKEN
@myorg:registry=https://somewhere-else.com/myorg
@another:registry=https://somewhere-else.com/another
//registry.npmjs.org/:_authToken=MYTOKEN
; would apply to both @myorg and @another
; //somewhere-else.com/:_authToken=MYTOKEN
//somewhere-else.com/:_authToken=MYTOKEN
; would apply only to @myorg
//somewhere-else.com/myorg/:_authToken=MYTOKEN1
; would apply only to @another
//somewhere-else.com/another/:_authToken=MYTOKEN2
```
Expand Down

0 comments on commit 24d5350

Please sign in to comment.