feat: add postbuild script for auto-publish to local Verdaccio
Summary
Adds a postbuild script that automatically publishes the package to a local Verdaccio registry if one is running.
Changes
- Added
scripts/publish-local.js- checks if Verdaccio is running and publishes - Added
postbuildnpm script that runs after build
Usage
- Start Verdaccio:
docker compose up -d verdaccio(in ratings-stack) - First time only:
npm adduser --registry http://localhost:4873 - Build:
npm run build(auto-publishes to Verdaccio)
If Verdaccio isn't running, the build completes normally without error.
Related
- Closes #4 (closed)
- Related to ratings-stack#1 (closed)