@eggplanty/mycli 0.1.5 → 0.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eggplanty/mycli",
3
- "version": "0.1.5",
3
+ "version": "0.1.7",
4
4
  "description": "A simple CLI demo built with Go",
5
5
  "bin": {
6
6
  "mycli": "scripts/run.js"
@@ -29,6 +29,12 @@ if git ls-remote --tags origin "$TAG" | grep -q "$TAG"; then
29
29
  exit 0
30
30
  fi
31
31
 
32
+ # Ensure package.json changes are committed before tagging
33
+ if git diff --name-only | grep -q 'package.json' || git diff --cached --name-only | grep -q 'package.json'; then
34
+ echo "Error: package.json has uncommitted changes. Please commit before tagging." >&2
35
+ exit 1
36
+ fi
37
+
32
38
  # Create and push tag
33
39
  git tag "$TAG"
34
40
  git push origin "$TAG"