diff --git a/package.json b/package.json index b9cc7e69..26a42edf 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,7 @@ "build:doc": "npm run build:doc:all-exfils && npm run build:doc:mermaid", "zip:files": "cd dist && bestzip ../mod.zip user BepInEx && cd .. && node scripts/rename-zip.js", "prepare:files": "node scripts/prepare-files.js", - "build:release": "npm run rebuild:all && npm run prepare:files && npm run zip:files", + "build:release": "npm run rebuild:all && npm run prepare:files && npm run zip:files && npm run git:check:status", "clean": "rimraf dist tmp 'src/**/*.js' Trap-PathToTarkov*", "clean:all": "npm run clean:client && npm run clean", "prettier": "prettier --write .", diff --git a/scripts/check-git-status.sh b/scripts/check-git-status.sh index 506e12fb..8ae2203f 100644 --- a/scripts/check-git-status.sh +++ b/scripts/check-git-status.sh @@ -1,8 +1,8 @@ #!/bin/bash -e if [[ `git status --porcelain` ]]; then - echo "Error from script 'check-git-status.sh' -> some changes are detected in this git repo" git status + echo "Error from script 'check-git-status.sh' -> some changes are detected in this git repo" exit 1 else echo "OK: No changes detected."