#!/bin/sh set -e # Sync node_modules if package.json changed if [ ! -d "node_modules" ] || [ "package.json" -nt "node_modules" ]; then echo "Installing dependencies..." npm install touch node_modules fi exec "$@"