mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-30 10:59:42 +08:00
b4c3f76fa7
Change-Id: I9eedc732dceffe147911058e6b02afbd5d8e4566
27 lines
385 B
Bash
27 lines
385 B
Bash
#!/bin/bash
|
|
set -e
|
|
|
|
rm -rf lib
|
|
rm -rf output
|
|
|
|
fis3 release publish -c
|
|
rm -rf lib/node_modules
|
|
|
|
# 生成 sdk
|
|
rm -rf sdk && fis3 release publish-sdk -c
|
|
|
|
# 生成 .d.ts 文件
|
|
./node_modules/.bin/tsc --allowJs --declaration
|
|
|
|
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
|
|
|
|
npm run build-schemas
|