Skip to content

Commit 86e8f5c

Browse files
authored
docs: clarify "Publishing to a local registry" (#54)
1 parent e805a3b commit 86e8f5c

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

CONTRIBUTING.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,11 +141,17 @@ After your pull request is merged, you can safely delete your branch and pull th
141141
## ▶ 9. Publishing to a local registry
142142

143143
To test if your changes will actually work once the changes are published,
144-
it can be useful to publish to a local registry.
144+
it can be useful to publish locally to *Verdaccio*, a lightweight Node.js private proxy registry.
145145

146+
**In Terminal 1, Install and launch Verdaccio**
146147
- Run `npm i -g verdaccio` in Terminal 1 (keep it running)
147-
- Run `verdaccio
148-
- Run `npm adduser --registry http://localhost:4873` in Terminal 2 (real credentials are not required, you just need to be logged in. You can use your own login details.
148+
- Run `verdaccio`
149+
150+
**In Terminal 2, Add a user and execute Nx commands to populate the local Verdaccio repository**
151+
- Run `npm adduser --registry http://localhost:4873 --auth-type=legacy`
152+
153+
*(real credentials are not required, you just need to be logged in. You can use your own login details.)*
154+
149155
- Run `nx publish [package] --registry=http://localhost:4873`
150156
- Run `nx publish qwik-nx --registry=http://localhost:4873`
151157

0 commit comments

Comments
 (0)