feat(scripts): restore dist with undo-release

This commit is contained in:
peaklabs-dev committed 2026-02-13 16:22:38 +01:00
1 parent fc7f200e4a
commit 9c7dd0d76e
1 file changed
+2 -2
Regular → Executable
+2 -2
View File
@@ -33,7 +33,7 @@ confirm_undo() {
echo -e " This will:"
echo -e " ${DIM}- Delete local tag ${CURRENT_TAG}${OFF}"
echo -e " ${DIM}- Delete local major tag ${MAJOR_TAG} (if present)${OFF}"
echo -e " ${DIM}- Reset the release commit${OFF}"
echo -e " ${DIM}- Reset the release commit and restore dist/${OFF}"
echo ""
echo -e -n " Continue? [y/N] "
read -r confirm
@@ -53,7 +53,7 @@ delete_local_tags() {
reset_local_commit() {
git reset --soft HEAD~1 > /dev/null
git restore --staged . > /dev/null
git checkout -- "$PACKAGE_JSON" > /dev/null
git checkout -- "$PACKAGE_JSON" "$REPO_ROOT/dist/" > /dev/null 2>&1
success "Reset release commit"
}