Skip to content

Commit 9f23519

Browse files
committed
fix release tools for osx
1 parent 561b4af commit 9f23519

3 files changed

Lines changed: 10 additions & 3 deletions

File tree

‎package-lock.json‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎scripts/version‎

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,16 @@ abort() {
55
exit 1
66
}
77

8+
if [[ -x $(which ggrep) ]]
9+
then
10+
grepper='ggrep'
11+
else
12+
grepper='grep'
13+
fi
14+
815
PACKAGE_VERSION=$(node -p "require('./package.json').version")
916
PACKAGE_LOCK_VERSION=$(node -p "require('./package-lock.json').version")
10-
EXPORTED_VERSION=$(grep -oP "(?<=const VERSION = \").*(?=\";)" ./src/luxon.js)
17+
EXPORTED_VERSION=$($grepper -oP "(?<=const VERSION = \").*(?=\";)" ./src/luxon.js)
1118

1219
if [ $PACKAGE_VERSION != $PACKAGE_LOCK_VERSION ]; then
1320
abort "package-lock.json's version differs from package.json's"

‎src/luxon.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import InvalidZone from "./zones/invalidZone.js";
99
import LocalZone from "./zones/localZone.js";
1010
import Settings from "./settings.js";
1111

12-
const VERSION = "1.25.0";
12+
const VERSION = "1.26.0";
1313

1414
export {
1515
VERSION,

0 commit comments

Comments
 (0)