readme: acknowledgements

This commit is contained in:
Barrett Ruth 2023-01-02 16:43:14 -06:00
parent 20478055b5
commit 85c2659ea3
2 changed files with 28 additions and 13 deletions

View file

@ -1,17 +1,11 @@
#!/bin/sh
[ "$1" ] || (echo 'Must provide node.js package manager' && exit)
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"
$1 install
cd ..
cp index.js import-cost