chore: 修复内网发包时部分amis路径未替换scope问题 (#5843)

This commit is contained in:
RUNZE LU 2022-12-05 15:00:43 +08:00 committed by GitHub
parent f7d1254581
commit 9f32eee82b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -37,6 +37,7 @@ done
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/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
done
@ -44,6 +45,7 @@ done
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/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
done