mirror of
https://github.com/alrayyes/dotfiles/
synced 2023-11-14 15:56:30 +00:00
12 lines
228 B
Bash
12 lines
228 B
Bash
|
#!/bin/sh
|
||
|
|
||
|
install_yarn_package_if_not_exist() {
|
||
|
if ! yarn global list | grep -q "$1"; then
|
||
|
echo "Installing yarn package $1"
|
||
|
yarn global add "$1"
|
||
|
fi
|
||
|
}
|
||
|
|
||
|
# Install yarn packages
|
||
|
install_yarn_package_if_not_exist lighthouse
|