1
1
mirror of https://github.com/primer/css.git synced 2024-12-12 10:47:14 +03:00
css/script/prepublish
Shawn Allen afd5a05646 remove build directory
BREAKING CHANGE: the build directory is no longer included in the
distributed package. build/stats.json can be found at
dist/stats/primer.json, and `require('@primer/css/build')` references
should be rewritten to `require('@primer/css/dist/primer')`.
2019-09-10 11:28:09 -07:00

15 lines
280 B
Bash
Executable File

#!/bin/bash
set -e
# generate the build directory
npm run --silent dist
# run the bundle size and selector diff reports
script/run-reports
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 -