From a34a5315987749ed5421252d4141db5efd69cf04 Mon Sep 17 00:00:00 2001 From: "kim.tran" Date: Thu, 14 Nov 2024 13:22:35 +0100 Subject: [PATCH] fix: onecx versions in libs peerDependencies are now updated correctly --- release-script.sh | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/release-script.sh b/release-script.sh index bbfbd9811..a54f99643 100755 --- a/release-script.sh +++ b/release-script.sh @@ -18,11 +18,12 @@ for folder in "${folder_names[@]}"; do packageJsonDataLib=$(cat libs/$folder/package.json) libPackageVersion=$(echo "$packageJsonDataLib" | jq -r '.version') packageJsonDataLib=$(echo "$packageJsonDataLib" | sed -E 's/(@onecx[^"]+?": *?")([^"]+)"/\1^'$1'"/') -if [[ $libPackageVersion != $1 ]] -then - npx -p replace-json-property rjp libs/$folder/package.json version $1 - npx nx run $folder:release -fi + echo $packageJsonDataLib > libs/$folder/package.json + if [[ $libPackageVersion != $1 ]] + then + npx -p replace-json-property rjp libs/$folder/package.json version $1 + npx nx run $folder:release + fi done