#!/bin/sh -ex export TEMP="${PWD}/tmp" mkdir "${TEMP}" # https://github.com/npm/cli/issues/3208#issuecomment-1002990902 # Work around crazy performance issue in npm@7 / npm@8 mkdir node_modules npm ci npm run build find dist -mindepth 1 -maxdepth 1 -printf '%P\0' \ | xargs -0 tar -czf hudctrl-ui.tar.gz -C dist