Skip to content

Commit

Permalink
chore(global): add local-registry command
Browse files Browse the repository at this point in the history
  • Loading branch information
extg3 committed May 17, 2024
1 parent 0953e43 commit 78929af
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
14 changes: 13 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,23 @@ This project uses Verdaccio to set up a local npm registry for testing packages
1. **Start the Local Registry**: Start the Verdaccio server:

```sh
nx run ditto-network:local-registry
npm run local-registry
```

2. **Publish Packages Locally**: Once the Verdaccio server is running, publish your packages to the local registry:

```sh
npm publish --registry http://localhost:4873
```

3. **Use Packages from Local Registry**: Set the npm registry to the local Verdaccio instance to install packages from there:

```sh
npm set registry http://localhost:4873
```

4. **Revert to Public Registry**: Revert back to the public npm registry after testing:

```sh
npm set registry https://registry.npmjs.org
```
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"nx": "nx",
"commit": "cz",
"release": "standard-version && git push --follow-tags origin master",
"local-registry": "nx run ditto-network:local-registry",
"prepare": "husky"
},
"private": true,
Expand Down

0 comments on commit 78929af

Please sign in to comment.