Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#!/bin/bash
set -euo pipefail
PN_PKG='pneumatic-tubes'
mkdir -p "/tmp/${PN_PKG}"
cd "/tmp/${PN_PKG}" || exit 1
if [ ! -e node_modules/.bin/npx ]
then
npm i npm@latest node@8 "${PN_PKG}"
fi
node_modules/.bin/npx -p node@8 -p "${PN_PKG}" "${PN_PKG}" "$@"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment