Skip to content

Commit

Permalink
refactor: 💡 Fixed destructive sync script
Browse files Browse the repository at this point in the history
  • Loading branch information
jsimck committed Sep 5, 2021
1 parent 95aba8f commit 2be3e3d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/cli/sync.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ echo " Copying @ima/server, @ima/cli & @ima/core to app directory..."
echo "===-----------------------------------------------------------==="
echo ""

echo 'Unlinking @ima/cli'
cd $APP_DIR
npm unlink @ima/cli

echo 'Syncing @ima/core...'
cd $APP_DIR/node_modules/@ima/core
ls -1 | grep -v 'node_modules' | xargs rm -rf
Expand Down

0 comments on commit 2be3e3d

Please sign in to comment.