Skip to content

Commit d336576

Browse files
committed
scripts: Add script to update any dependency
1 parent 92599d3 commit d336576

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

scripts/update-dependency.sh

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/bin/bash
2+
3+
PACKAGE=$1
4+
VERSION=$2
5+
6+
if [[ -z "$PACKAGE" ]] || [[ -z "$VERSION" ]]; then
7+
echo "Usage: $0 <package> <version>"
8+
exit 1
9+
fi
10+
11+
for pkg in $(ls -1 packages); do
12+
pushd packages/$pkg
13+
yarn add $PACKAGE@$VERSION
14+
popd
15+
done

0 commit comments

Comments
 (0)