You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+10-10Lines changed: 10 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -141,19 +141,19 @@ After your pull request is merged, you can safely delete your branch and pull th
141
141
## ▶ 9. Publishing to a local registry
142
142
143
143
To test if your changes will actually work once the changes are published,
144
-
it can be useful to publish locally to *Verdaccio*, a lightweight Node.js private proxy registry.
144
+
it can be useful to publish to a local registry.
145
145
146
-
**In Terminal 1, Install and launch Verdaccio**
147
-
- Run `npm i -g verdaccio` in Terminal 1 (keep it running)
148
-
- Run `verdaccio`
146
+
- Run `pnpm run local-registry start` in Terminal 1 (keep it running)
147
+
- Run `npm adduser --registry http://localhost:4873` in Terminal 2 (real credentials are not required, you just need to
148
+
be logged in. You can use test/test/test@test.io.)
149
+
- Run `pnpm run local-registry enable` in Terminal 2
150
+
- Run `pnpm run nx run qwik-nx:publish:local` in Terminal 2. You can set the version you want to publish in the package's package.json file.
149
151
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.)*
152
+
If you have problems publishing, make sure you use Node 18 and NPM 8. Alternatively to running the project's "publish" target you can build and publish manually by running `pnpm run nx build:qwik-nx && cd dist/projects/qwik-nx && npm publish --registry=http://localhost:4873`
154
153
155
-
- Run `nx publish [package] --registry=http://localhost:4873`
156
-
- Run `nx publish qwik-nx --registry=http://localhost:4873`
154
+
**NOTE:** After you finish with local testing don't forget to stop the local registry (e.g. closing the Terminal 1) and disabling the local registry using `pnpm run local-registry disable`. Keeping local registry enabled will change your lock file resolutions to `localhost:4873` on the next `pnpm install`. You can also run `pnpm run local-registry clear` to clean all packages in that local registry.
155
+
156
+
**NOTE:** To use this newly published local version, you need to make a new workspace or change your target package to this new version, eg: `"qwik-nx": "^1.0.0",` and re-run `pnpm install` in your testing project.
157
157
158
158
### ▶ 10. That's it! Thank you for your contribution! 🙏💓
0 commit comments