#!/bin/bash set -e # generate the build directory yarn dist > /dev/null files=$(git ls-files src | sed -e 's#^src/##' | sed -e 's#/.*$##' | sort -u) echo $files > publish-files.log cd src cp -rv $files .. cd -