2019-04-30 11:11:25 +08:00
|
|
|
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
|
|
|
|
rm -rf lib
|
|
|
|
rm -rf output
|
|
|
|
|
2020-05-27 19:31:50 +08:00
|
|
|
fis3 release publish -c
|
|
|
|
rm -rf lib/node_modules
|
2019-04-30 11:11:25 +08:00
|
|
|
|
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 文件
|
2020-06-02 11:02:43 +08:00
|
|
|
./node_modules/.bin/tsc --allowJs --declaration
|
2019-04-30 11:11:25 +08:00
|
|
|
|
2020-05-27 19:31:50 +08:00
|
|
|
cd output
|
2019-04-30 11:11:25 +08:00
|
|
|
|
2020-05-27 19:31:50 +08:00
|
|
|
for f in $(find . -name "*.d.ts"); do
|
|
|
|
mkdir -p ../lib/$(dirname $f) && mv $f ../lib/$(dirname $f)
|
2019-04-30 11:11:25 +08:00
|
|
|
done
|
|
|
|
|
2020-05-27 19:31:50 +08:00
|
|
|
cd ..
|
2019-04-30 11:11:25 +08:00
|
|
|
|
|
|
|
rm -rf output
|
2020-09-09 20:20:12 +08:00
|
|
|
|
|
|
|
npm run build-schemas
|