@mservices-tech/scripts 3.2.3-scripts-release-refactor-rc.1 → 3.3.0-scripts-release-refactor-rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5,7 +5,7 @@ source "$(dirname $0)/../utils.sh" || exit 1
5
5
  function usage() {
6
6
  cat << END
7
7
  Usage:
8
- ./bump_version.sh [--help] [--prerelease] [--package-json-transform=transform_string] [--include-dependency-changes] [--dry-run]
8
+ ./bump_version.sh [--help] [--prerelease] [--package-json-transform=transform_string] [--include-dependency-changes] [--dry-run] [--versionrc-path=path]
9
9
  Where:
10
10
  help - show usage information and exit
11
11
  package-json-transform - optional string with jq transforms that will be applied
@@ -13,6 +13,7 @@ Where:
13
13
  prerelease - create a release candidate for the package
14
14
  include-dependency-changes - include dependency changes in changelog (default: off)
15
15
  dry-run - run standard-version in dry run mode
16
+ versionrc-path - optional path to .versionrc.js file (defaults to the one bundled with the script)
16
17
  Description:
17
18
  Bumps semantic version of the package using
18
19
  standard-version (https://www.npmjs.com/package/standard-version)
@@ -45,7 +46,11 @@ function main() {
45
46
  fi
46
47
 
47
48
  local -r current_script_directory="$(dirname "${BASH_SOURCE[0]}")"
48
- cp "$current_script_directory"/.versionrc.js .
49
+ if [ "${PROCESS_ARGUMENTS['--versionrc-path']}" ]; then
50
+ cp "${PROCESS_ARGUMENTS['--versionrc-path']}" ./.versionrc.js
51
+ else
52
+ cp "$current_script_directory"/.versionrc.js .
53
+ fi
49
54
 
50
55
  # Set environment variable for changelog enrichment if flag is set
51
56
  if [ ${PROCESS_ARGUMENTS['--include-dependency-changes']} ]; then
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mservices-tech/scripts",
3
- "version": "3.2.3-scripts-release-refactor-rc.1",
3
+ "version": "3.3.0-scripts-release-refactor-rc.0",
4
4
  "license": "MIT",
5
5
  "packageManager": "yarn@4.4.1",
6
6
  "bin": {