This npm package acts as a central repository to expose shareable react components to be used across our BYB front-end projects.
-
Add a component
-
Export the component and it's types
-
Bump the package.json version via semantic versioning reference by running
npm version x.x.x
(this bumps thepackage.json
version and does a commit)- MAJOR version: breaking changes (⬆.x.x)
- MINOR version: feature (x.⬆.x)
- PATCH version: bug fix (x.x.⬆)
-
Publish the package via
yarn build
- We are using
rollup
to bundle/build the package - the
input
key is what determines what is being published for the npm publish (refer torollup.config.mjs
)