Skip to content

Commit

Permalink
chore: add sync sh
Browse files Browse the repository at this point in the history
  • Loading branch information
czy88840616 committed Dec 25, 2019
1 parent a143550 commit 822e426
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions scripts/sync.sh
@@ -0,0 +1,16 @@
#!/bin/bash
pkgs=`find packages -maxdepth 1 -mindepth 1`
cwd=`pwd`

for pkg in $pkgs
do
cd $cwd
if [ -f "${pkg}/package.json" ]; then
cd $pkg
NAME=$(node -pe "require('./package.json').name")
SHH="tnpm sync ${NAME}"
echo $SHH
$SHH
fi
done
cd $cwd

0 comments on commit 822e426

Please sign in to comment.