From d499200de41a56017488d7e75caf151965ae97e5 Mon Sep 17 00:00:00 2001 From: Adria Navarro Date: Mon, 26 Jun 2023 11:53:29 +0100 Subject: [PATCH] Change path refs --- scripts/bumpVersion.js | 2 +- scripts/versionCommit.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/bumpVersion.js b/scripts/bumpVersion.js index 19deb684da..dd54074ae8 100644 --- a/scripts/bumpVersion.js +++ b/scripts/bumpVersion.js @@ -1,7 +1,7 @@ const fs = require("fs") const semver = require("semver") -const filePath = "lerna.json" +const filePath = "../lerna.json" const versionBump = process.argv[2] || "patch" // Read and parse lerna.json file diff --git a/scripts/versionCommit.sh b/scripts/versionCommit.sh index d70f6900e2..69137a988f 100755 --- a/scripts/versionCommit.sh +++ b/scripts/versionCommit.sh @@ -7,10 +7,10 @@ then fi # Bump the version in lerna.json -node scripts/bumpVersion.js $1 +node ./bumpVersion.js $1 -NEW_VERSION=$(node -p "require('./lerna.json').version") +NEW_VERSION=$(node -p "require('../lerna.json').version") git add lerna.json git commit -m "Bump version to $NEW_VERSION" git tag v$NEW_VERSION