Skip to content

Commit 3abf181

Browse files
committed
docs: updated config templates
1 parent c4a8913 commit 3abf181

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

project-config-templates/monorepo-template

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,22 @@ MODULE_ROOT_PATH=''
4040
# example: 'true' ('false' by default)
4141
IS_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 ------------------------------------- #

project-config-templates/xml-versions-template

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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")
2929
TEXT_AFTER_VERSION_CODE="<\/version>"
3030

31-
# ------------------------------------- end basic variables ------------------------------------- #
31+
# ------------------------------------- end basic variables ------------------------------------- #

0 commit comments

Comments
 (0)