- This repo uses Bun.
- Use
bun installfor dependency changes. - Use
bun run <script>for project scripts. - Use
bun testfor tests. - Do not use
npmor commitpackage-lock.json.
- If React package work changes the public API, runtime behavior, browser leak guard, package exports, or published artifacts, bump
package.jsonbefore merging tomaster. - Use semantic versioning for the React package bump:
patchfor backward-compatible fixes,minorfor backward-compatible features,majorfor breaking changes. - Keep the release commit on
masterself-contained: include the code changes, tests, docs, and the version bump together. - Before pushing or publishing, run:
bun run typecheckbun run testbun run build
- Keep the
@barekey/sdkdependency aligned with the SDK release this package expects. If React depends on a newly released SDK feature or fix, update@barekey/sdkinpackage.json, runbun install, and commit the resultingbun.lockchanges too.
- If work includes merging changes to
/home/sander/barekey/sdk, make sure the SDK repo is version-bumped first whenever its surface, generated types, runtime behavior, or published artifacts changed. - After that SDK merge, update the React dependency to the new SDK version if this package consumes the changed behavior.