rn-branch-guard
v0.1.1
Published
Install a Git post-checkout hook that warns when dependency files change between branches.
Downloads
14
Maintainers
Readme
rn-branch-guard
A tiny CLI that installs a Git post-checkout hook to warn you when dependency files change between branches.
Why?
When switching branches in React Native / Expo projects, dependency files may change while your installed packages remain outdated. This often causes confusing build or runtime errors.
rn-branch-guard helps by showing a warning after checkout when files like these change:
package.jsonpackage-lock.jsonyarn.lockpnpm-lock.yaml
Usage
Run this inside your project:
npx rn-branch-guard
Works with any Git-based JavaScript project.
Useful for:
- React / Next.js
- Node.js
- React Native / Expo
- Vite / Vue
- pnpm / yarn / npm projects
