refactor: scripts to apps

This commit is contained in:
2025-04-17 22:00:23 -04:00
parent 24d3067e52
commit ad9ac18c18
4 changed files with 57 additions and 41 deletions

View File

@ -7,13 +7,13 @@ next_version=$(echo "${version}" | awk -F. -v OFS=. '{$NF += 1 ; print}')
echo "bumping client"
cd "${git_root}/client"
npm version "${next_version}" && npm i
npm version "${next_version}"
git add package-lock.json
git add package.json
echo "bumping nix"
cd "${git_root}"
nix-update --flake --version "${next_version}" --subpackage trevstack-client trevstack
nix-update --flake --version "${next_version}" --subpackage client default
git add flake.nix
git commit -m "bump: v${version} -> v${next_version}"

View File

@ -35,7 +35,7 @@ fi
if [ "${updated}" = true ]; then
echo "updating nix hashes"
cd "${git_root}"
nix-update --flake --version=skip --subpackage trevstack-client trevstack
nix-update --flake --version=skip --subpackage client default
git add flake.nix
git commit -m "build(nix): updated nix hashes"
else