- 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 CLI work changes the shipped CLI behavior, commands, output, flags, package exports, or published artifacts, bump the CLI version before merging to
master. - Keep CLI versions aligned in both
package.jsonandsrc/constants.ts. - Use semantic versioning for the CLI bump:
patchfor backward-compatible fixes,minorfor backward-compatible features,majorfor breaking changes. - If the CLI depends on a newly released SDK feature or fix, update
@barekey/sdkinpackage.json, runbun install, and commit the resultingbun.lockchanges too. - Before pushing, run:
bun test testbun run typecheckbun run build
- 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 CLI dependency to the new SDK version if the CLI consumes the changed behavior.