mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-29 18:48:45 +08:00
chore: 修复内网发包时部分amis路径未替换scope问题 (#5843)
This commit is contained in:
parent
f7d1254581
commit
9f32eee82b
@ -37,6 +37,7 @@ done
|
|||||||
for f in $(find ./packages/*/lib -type f -name "*.[tj]s"); do
|
for f in $(find ./packages/*/lib -type f -name "*.[tj]s"); do
|
||||||
sed -i '' -e "s/from \'amis/from \'@fex\/amis/g" $f
|
sed -i '' -e "s/from \'amis/from \'@fex\/amis/g" $f
|
||||||
sed -i '' -e "s/import(\'amis/import(\'@fex\/amis/g" $f
|
sed -i '' -e "s/import(\'amis/import(\'@fex\/amis/g" $f
|
||||||
|
sed -i '' -e "s/import[ ]*\'amis/import \'@fex\/amis/g" $f
|
||||||
sed -i '' -e "s/require(\'amis/require(\'@fex\/amis/g" $f
|
sed -i '' -e "s/require(\'amis/require(\'@fex\/amis/g" $f
|
||||||
sed -i '' -e "s/require(\[\'amis/require(\[\'@fex\/amis/g" $f
|
sed -i '' -e "s/require(\[\'amis/require(\[\'@fex\/amis/g" $f
|
||||||
done
|
done
|
||||||
@ -44,6 +45,7 @@ done
|
|||||||
for f in $(find ./packages/*/esm -type f -name "*.[tj]s"); do
|
for f in $(find ./packages/*/esm -type f -name "*.[tj]s"); do
|
||||||
sed -i '' -e "s/from \'amis/from \'@fex\/amis/g" $f
|
sed -i '' -e "s/from \'amis/from \'@fex\/amis/g" $f
|
||||||
sed -i '' -e "s/import(\'amis/import(\'@fex\/amis/g" $f
|
sed -i '' -e "s/import(\'amis/import(\'@fex\/amis/g" $f
|
||||||
|
sed -i '' -e "s/import[ ]*\'amis/import \'@fex\/amis/g" $f
|
||||||
sed -i '' -e "s/require(\'amis/require(\'@fex\/amis/g" $f
|
sed -i '' -e "s/require(\'amis/require(\'@fex\/amis/g" $f
|
||||||
sed -i '' -e "s/require(\[\'amis/require(\[\'@fex\/amis/g" $f
|
sed -i '' -e "s/require(\[\'amis/require(\[\'@fex\/amis/g" $f
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user