From 771ab6a782b57e5cca004f3c4fb27ff767df01f4 Mon Sep 17 00:00:00 2001 From: Akita Noek Date: Mon, 14 Oct 2024 06:52:27 -0600 Subject: [PATCH] Keep package.json versions with a 'dev' string instead of actual version in repo to prevent commit churn --- Makefile | 6 ++++++ engine/package.json | 2 +- package.json | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index f95b67a1..069c6322 100644 --- a/Makefile +++ b/Makefile @@ -42,6 +42,10 @@ beta_npm: build publish-beta pack: build yarn pack +restore-dev-versions: + sed -i'.tmp' "s/\"version\": .*/\"version\": \"dev\",/" package.json + sed -i'.tmp' "s/\"version\": .*/\"version\": \"dev\",/" engine/package.json + publish-beta: build sed -i'.tmp' "s/\"version\": .*/\"version\": \"$(GIT_VERSION)-beta\",/" package.json sed -i'.tmp' "s/\"version\": .*/\"version\": \"$(GIT_VERSION)-beta\",/" engine/package.json @@ -52,6 +56,7 @@ publish-beta: build echo "" && \ echo "Published version $(GIT_VERSION)-beta to the beta tag successfully." && \ echo "" + @make restore-dev-versions publish-production: build sed -i'.tmp' "s/\"version\": .*/\"version\": \"$(GIT_VERSION)\",/" package.json @@ -63,6 +68,7 @@ publish-production: build echo "" && \ echo "Published version $(GIT_VERSION) successfully." && \ echo "" + @make restore-dev-versions notify: MSG=`git log -1 --pretty="%B" | sed s/\"//g | sed s/\'//g `; \ diff --git a/engine/package.json b/engine/package.json index f65d7bed..b897cace 100644 --- a/engine/package.json +++ b/engine/package.json @@ -1,6 +1,6 @@ { "name": "goban-engine", - "version": "8.3.51", + "version": "dev", "description": "", "main": "build/goban-engine.js", "types": "build/engine/index.d.ts", diff --git a/package.json b/package.json index 562b396f..cb08011f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "goban", - "version": "8.3.51", + "version": "dev", "description": "", "main": "build/goban.js", "types": "build/src/index.d.ts",