From 646405908e45e54e6efa2d6313a250ea927756e1 Mon Sep 17 00:00:00 2001 From: Gergely Pap Date: Thu, 25 Jan 2024 11:31:12 +0100 Subject: [PATCH] fix: exit code (#1336) * fix: exit with correct code * chore: fix engine version in package lock --------- Co-authored-by: Gergely Pap <5883922+gergelypap@users.noreply.github.com> --- husky.sh | 2 +- package-lock.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/husky.sh b/husky.sh index fe184c08..2467495b 100644 --- a/husky.sh +++ b/husky.sh @@ -17,4 +17,4 @@ c=$? [ $c != 0 ] && echo "husky - $h script failed (code $c)" [ $c = 127 ] && echo "husky - command not found in PATH=$PATH" -exit 1 +exit $c diff --git a/package-lock.json b/package-lock.json index 4164ef0d..843ee4cc 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12,7 +12,7 @@ "husky": "bin.js" }, "engines": { - "node": ">=16" + "node": ">=18" }, "funding": { "url": "https://github.com/sponsors/typicode"