diff --git a/scripts/bump_version.sh b/scripts/bump_version.sh index 43df6276..e1a780ec 100755 --- a/scripts/bump_version.sh +++ b/scripts/bump_version.sh @@ -1,14 +1,14 @@ #!/usr/bin/env bash set -e -if ! [ -x "$(command -v standard-version)" ]; then - echo "standard-version is not installed. please run 'npm i -g standard-version'" +if ! [ -x "$(command -v npx)" ]; then + echo "Node.js is require, exiting..." exit 1 fi -standard-version --dry-run --skip +npx standard-version --dry-run --skip read -p "Continue (y/n)? " -n 1 -r echo ; if [[ $REPLY =~ ^[Yy]$ ]]; then - standard-version -s ; + npx standard-version -s ; fi \ No newline at end of file diff --git a/scripts/commitlint.sh b/scripts/commitlint.sh index d5895ce2..f6ffb6c7 100755 --- a/scripts/commitlint.sh +++ b/scripts/commitlint.sh @@ -1,11 +1,11 @@ #!/usr/bin/env bash set -e -if ! [ -x "$(command -v commitlint)" ]; then - echo "commitlint is not installed. please run 'npm i -g commitlint'" +if ! [ -x "$(command -v npx)" ]; then + echo "Node.js is require, exiting..." exit 1 fi for commit_hash in $(git log --pretty=format:%H origin/master..HEAD); do - commitlint -f ${commit_hash}~1 -t ${commit_hash} + npx commitlint -f ${commit_hash}~1 -t ${commit_hash} done