Reference and credits: https://articles.wesionary.team/react-component-library-with-vite-and-deploy-in-npm-579c2880d6ff
- Fork the repo
- Replace
productive-vite-react-libraryeverywhere by the name of your library.
npm ci
npx husky installnpm run :dnpm run build
npm version x.y.z
npm publishDo not forget library and packaging best practices! (CHANGELOG, semver, etc.)