1
1
mirror of https://github.com/primer/css.git synced 2024-11-30 01:04:04 +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 -