1
1
mirror of https://github.com/primer/css.git synced 2024-12-27 16:11:46 +03:00
css/script/prepublish
2021-03-25 14:16:57 -07:00

12 lines
212 B
Bash
Executable File

#!/bin/bash
set -e
# generate the build directory
npm run --silent dist
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 -