Skip to content

Commit

Permalink
scripts: Add script to update any dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
Jannis committed Dec 20, 2020
1 parent 92599d3 commit d336576
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions scripts/update-dependency.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/bash

PACKAGE=$1
VERSION=$2

if [[ -z "$PACKAGE" ]] || [[ -z "$VERSION" ]]; then
echo "Usage: $0 <package> <version>"
exit 1
fi

for pkg in $(ls -1 packages); do
pushd packages/$pkg
yarn add $PACKAGE@$VERSION
popd
done

0 comments on commit d336576

Please sign in to comment.