mirror of
https://github.com/primer/css.git
synced 2024-11-30 01:04:04 +03:00
afd5a05646
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')`.
15 lines
280 B
Bash
Executable File
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 -
|