2019-04-30 11:11:25 +08:00
|
|
|
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
|
|
|
|
rm -rf lib
|
|
|
|
rm -rf output
|
|
|
|
|
|
|
|
fis3 release publish -c
|
|
|
|
rm -rf lib/node_modules
|
|
|
|
|
2019-08-05 16:54:39 +08:00
|
|
|
# 生成 sdk
|
|
|
|
rm -rf sdk && fis3 release publish-sdk -c
|
|
|
|
|
2019-04-30 11:11:25 +08:00
|
|
|
# 生成 .d.ts 文件
|
|
|
|
tsc --allowJs --declaration || true
|
|
|
|
|
|
|
|
cd output;
|
|
|
|
|
|
|
|
for f in `find . -name "*.d.ts"`;
|
|
|
|
do mkdir -p ../lib/`dirname $f` && mv $f ../lib/`dirname $f`;
|
|
|
|
done
|
|
|
|
|
|
|
|
cd ..;
|
|
|
|
|
|
|
|
rm -rf output
|
|
|
|
|