#!/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