chore: 调整amis内网发布脚本

This commit is contained in:
lurunze1226 2023-04-21 13:52:06 +08:00
parent a42572fc91
commit 156b19c5fe

View File

@ -1,16 +1,16 @@
#!/bin/bash
set -e
npm run build --workspaces
npm run build --workspace=amis-formula --workspace=amis-core --workspace=amis-ui --workspace=amis
rm -rf npm
mkdir npm
mkdir -p npm/packages
# 如果有问题可以注释掉这两行,不知道为啥会导致 cp -rf 挂掉
# rm -rf packages/amis/node_modules/.bin
# rm -rf packages/amis-ui/node_modules/.bin
cp -rf packages npm
cp -r packages/{amis-formula,amis-core,amis-ui,amis} npm/packages
cp package.json npm
# 记录last commit便于区分内网版本包之间的差异