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
- 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