mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-05 04:37:47 +08:00
41655b6847
* chore(project): adding a script for upgrading vue version * Update locale.spec.ts Co-authored-by: zazzaz <izazzaz@hotmail.com>
13 lines
419 B
Bash
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"
|