Skip to main content
Module

x/value_schema/scripts/update-dependencies.sh

simple, easy-to-use, and declarative input validator; supports Node.js, TypeScript, and Deno
Go to Latest
File
#!/bin/bash# update dependencies
set -e
DATE=$(date +"%Y%m%d")BRANCH=feature/update-dependencies-${DATE}COLOR_SUCCESS="\e[1;32m"COLOR_RESET="\e[m"
cd $(dirname ${0})/..
# create branchgit checkout developgit checkout -b ${BRANCH}
# check updatesnpm run check-updates -- -u
# re-install packagesrm -rf npm-shrinkwrap.json node_modulesnpm i
# testnpm run buildnpm run verify
# commitnpm shrinkwrapgit add package.json npm-shrinkwrap.jsongit commit -m "update dependencies"
# finished!echo -e "${COLOR_SUCCESS}🎉All dependencies are updated successfully.🎉${COLOR_RESET}
Push changes and merge into 'develop' branch.
git push --set-upstream origin ${BRANCH}"