shrub/pkg/interface/preinstall.sh
2021-04-15 15:41:20 -04:00

12 lines
230 B
Bash
Executable File

#!/bin/sh
cd ../npm
for i in $(find . -type d -maxdepth 1) ; do
packageJson="${i}/package.json"
if [ -f "${packageJson}" ]; then
echo "installing ${i}..."
cd ./${i}
npm ci
cd ..
fi
done