element-plus/scripts/update-versions.sh
jeremywu 41655b6847
chore(project): adding a script for upgrading vue version (#660)
* chore(project): adding a script for upgrading vue version

* Update locale.spec.ts

Co-authored-by: zazzaz <izazzaz@hotmail.com>
2020-11-23 17:51:51 +08:00

13 lines
419 B
Bash

#! /bin/bash
export FILE_PATH="$(cd $(dirname "${BASH_SOURCE[0]}")/../packages/ && pwd)"
SED_REX="s/\"vue\": \"\^[0-9]\.[0-9]\.[0-9].*\"/\"vue\": \"$1\"/"
for FILE_NAME in "$(find ${FILE_PATH} -type f -name 'package.json' | cut -d' ' -f1-)"
do
sed -i '' "${SED_REX}" $FILE_NAME
done
sed -i '' "${SED_REX}" "$(dirname ${BASH_SOURCE[0]})/gc.sh"
sed -i '' "${SED_REX}" "$(dirname ${BASH_SOURCE[0]})/../package.json"