提交 16eb8429 编写于 作者: Huan (李卓桓)'s avatar Huan (李卓桓)

link wechaty module for /bot inside docker #66

上级 62aa1150
...@@ -38,10 +38,15 @@ if [[ "$1" == *.ts || "$1" == *.js ]]; then ...@@ -38,10 +38,15 @@ if [[ "$1" == *.ts || "$1" == *.js ]]; then
if [ -f "$botFilePath" ]; then if [ -f "$botFilePath" ]; then
cd /bot && pwd cd /bot && pwd
[ -f package.json ] && { [ -f package.json ] && {
echo "Install dependencies modules ..." echo "Install dependencies modules ..."
yarn yarn
} }
echo "Linking Wechaty Module ... "
npm link
echo "Executing ts-node $botFilePath $@" echo "Executing ts-node $botFilePath $@"
ts-node "$botFilePath" $@ ts-node "$botFilePath" $@
ret=$? ret=$?
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册