1
0
mirror of https://github.com/alrayyes/dotfiles/ synced 2023-11-14 15:56:30 +00:00
dotfiles/run_onchange_install-yarn-packages.sh

12 lines
228 B
Bash
Raw Normal View History

2022-10-09 15:30:41 +00:00
#!/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