- Run verdaccio in a separate shell
verdaccio
- 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
- 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