This explains how to develop locally, build the app & package the lib.
Best way to develop is with vite hot-reloading:
npm run dev
Run the production build:
npm run build
npm prepare # or npm pack to see the .tgz
or alternatively, publish it:
npm publish