mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-08 06:59:41 +08:00
22 lines
301 B
Bash
22 lines
301 B
Bash
#!/bin/bash
|
|
set -e
|
|
|
|
rm -rf lib
|
|
rm -rf output
|
|
|
|
fis3 release publish -c
|
|
rm -rf lib/node_modules
|
|
|
|
# 生成 .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
|
|
|