Thanks for contributing to react-pro-sidebar!
yarn install # install dependencies
yarn start # build the library in watch mode (tsup)
yarn storybook # run Storybook for interactive development
yarn test # run the test suite (vitest)
yarn lint # lint
yarn typecheck # type-check
yarn build # production build
yarn size # check the bundle size budgetA pre-commit hook (husky + lint-staged) runs ESLint and Prettier on staged files automatically.
This project uses Changesets to manage versioning and the changelog.
Add a changeset describing it:
yarn changesetYou'll be prompted for:
- The bump type —
patch(bug fix),minor(new feature, backwards compatible), ormajor(breaking change). - A short summary — this becomes the changelog entry.
This creates a markdown file in .changeset/. Commit it with your PR.
You don't need a changeset for changes that don't affect published code
(tests, CI, docs, internal refactors).
- PRs with changesets get merged to
master. - The release workflow opens (and keeps updating) a "Version Packages"
pull request that consumes the pending changesets — bumping the version in
package.jsonand updatingCHANGELOG.md. - Merging that PR publishes the new version to npm and tags the release.
You generally never edit package.json's version or CHANGELOG.md by hand —
changesets does it for you.