mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-14 01:11:25 +08:00
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"
|