import-cost.nvim/install.sh
2023-01-01 20:16:37 -06:00

17 lines
401 B
Bash

#!/bin/sh
git clone 'git@github.com:wix/import-cost.git' || (echo 'Failed to clone wix/import-cost' && exit)
echo 'Install import-cost with which package manager? [npm/yarn]'
read -r installer
if [ "$installer" != 'npm' ] && [ "$installer" != 'yarn' ]; then
echo "Please enter either 'npm' or 'yarn'"
exit
fi
cd import-cost || exit
eval "$installer install"
cd ..
cp index.js import-cost