File tree Expand file tree Collapse file tree 2 files changed +18
-2
lines changed
Expand file tree Collapse file tree 2 files changed +18
-2
lines changed Original file line number Diff line number Diff line change @@ -40,6 +40,22 @@ MODULE_ROOT_PATH=''
4040# example: 'true' ('false' by default)
4141IS_INCREMENT_REQUIRED_ONLY_ON_CHANGES='true'
4242
43+ # This function calls after each successful version update.
44+ # This realisation will generate new package-lock.json file after changing package.json.
45+ #
46+ # $1 - Version before update
47+ # $2 - New version after update
48+ function after_successful_version_update() {
49+ old_version=$1
50+ new_version=$2
51+ if [ "$SPECIFIED_PROJECT_MODULE" = 'WEB' ]; then
52+ cd "$ROOT_REPO_DIR/$MODULE_ROOT_PATH"
53+ npm i --package-lock-only
54+ # to update package-lock.json after updating package.json
55+ cd -
56+ fi
57+ }
58+
4359# ------------------------------------- end basic variables ------------------------------------- #
4460
4561# ------------------------------------- begin mono repository variables ------------------------------------- #
Original file line number Diff line number Diff line change @@ -22,10 +22,10 @@ VERSION_FILE='pom.xml'
2222
2323# TEXT_BEFORE_VERSION_CODE: unique text which will be just before version number (including spaces)
2424# example: '\"version\": \"' (for variable "version" in json files so it can find line "version": "version_number")
25- TEXT_BEFORE_VERSION_CODE="^ <version>"
25+ TEXT_BEFORE_VERSION_CODE="<version>"
2626
2727# TEXT_AFTER_VERSION_CODE: unique text which will be just after version number (including spaces)
2828# example: '\",' (for variable "version" in json files so it can find line "version": "version_number")
2929TEXT_AFTER_VERSION_CODE="<\/version>"
3030
31- # ------------------------------------- end basic variables ------------------------------------- #
31+ # ------------------------------------- end basic variables ------------------------------------- #
You can’t perform that action at this time.
0 commit comments