From 4313869127212a031e3e4c234ab2bd119b41fa13 Mon Sep 17 00:00:00 2001 From: Denys Vuika Date: Mon, 27 Nov 2023 11:04:38 +0000 Subject: [PATCH] [ACS-6370] fix js-api version bump (#9119) --- scripts/update-version.sh | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/scripts/update-version.sh b/scripts/update-version.sh index 281659a1a09..11b3c64d5fe 100755 --- a/scripts/update-version.sh +++ b/scripts/update-version.sh @@ -47,7 +47,7 @@ get_next_version() { } VERSION=`get_next_version $DIR/..` -JS_API_VERSION=`get_next_version $DIR/../lib/js-api/src` +JS_API_VERSION=`get_next_version $DIR/../lib/js-api` echo "====== New libs version: $VERSION =====" echo "====== New js-api version: $VERSION =====" @@ -70,13 +70,12 @@ version_js_change() { update_library_version() { DESTDIR="$DIR/../lib/$1" + cd $DESTDIR if [[ $1 == "js-api" ]]; then - cd $DESTDIR/src echo "====== $1@$JS_API_VERSION ======" npm version --allow-same-version --no-git-tag-version --force --loglevel=error $JS_API_VERSION else - cd $DESTDIR echo "====== $1@$VERSION ======" npm version --allow-same-version --no-git-tag-version --force --loglevel=error $VERSION fi @@ -105,11 +104,6 @@ update_dependencies() { update_library_dependencies() { DESTDIR="$DIR/../lib/$1" - - if [[ $1 == "js-api" ]]; then - DESTDIR="$DESTDIR/src" - fi - cd $DESTDIR update_dependencies $1 }