Skip to content

Instantly share code, notes, and snippets.

@gomesalexandre
Last active May 9, 2024 06:30
Show Gist options
  • Save gomesalexandre/bb1e36523920f89b5b1535993b18d840 to your computer and use it in GitHub Desktop.
Save gomesalexandre/bb1e36523920f89b5b1535993b18d840 to your computer and use it in GitHub Desktop.
Verdaccio Local Testing
  1. Run verdaccio in a separate shell
verdaccio
  1. In the package you want to test
npm set registry http://127.0.0.1:4873/
yarn config set npmRegistryServer http://127.0.0.1:4873/
yarn build # or similar to build publish dist
lerna publish --force-publish --no-git-tag-version # in the interactive view, select the next minor/major, ideally with some alpha or similar tag e.g 1.53.7-alpha.0
  1. In the project you want to test the package in
  • Configure npm and yarn to use verdaccio
npm set registry http://127.0.0.1:4873/
yarn config set npmRegistryServer http://127.0.0.1:4873/
  • Update your package.json with the newly published local version and run yarn

  • ???

  • Profit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment