Utility scripts for OpenSpec maintenance and development.
Updates flake.nix version and dependency hash automatically.
When to use: After updating dependencies or releasing a new version.
Usage:
./scripts/update-flake.shWhat it does:
- Extracts version from
package.json - Updates version in
flake.nix - Automatically determines the correct pnpm dependency hash
- Updates the hash in
flake.nix - Verifies the build succeeds
Example workflow:
# After version bump and dependency updates
pnpm install
./scripts/update-flake.sh
git add flake.nix
git commit -m "chore: update flake.nix for v0.18.0"Post-installation script that runs after package installation.
Validates package version consistency before publishing.