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
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 develop || exit 1git checkout -b ${BRANCH} || exit 1
# check updatesnpm run check-updates -- -u || exit 1
# re-install packagesrm -rf npm-shrinkwrap.json node_modules || exit 1npm i || exit 1
# testnpm run build || exit 1npm run verify || exit 1
# commitnpm shrinkwrap || exit 1git add package.json npm-shrinkwrap.json || exit 1git commit -m "update dependencies" || exit 1
# 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}"