We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 48b62d8 commit 4608007Copy full SHA for 4608007
script/postpublish
@@ -13,3 +13,5 @@ if [[ -f $file ]]; then
13
cat $file | xargs rm -rfv
14
rm $file
15
fi
16
+
17
+rm -rf build/
script/prepublish
@@ -8,6 +8,12 @@ npx action-status --context="$PUBLISH_STATUS_CONTEXT" \
8
# generate the build directory
9
npm run dist
10
11
+# TODO: remove this in v13
12
+mkdir -p build
+cp dist/primer.css build/build.css
+cp dist/stats/primer.json build/build.json
+echo "module.exports = {cssstats: require('./build.json')}" > build/index.js
files=$(git ls-files src | sed -e 's#^src/##' | sed -e 's#/.*$##' | sort -u)
18
echo $files > publish-files.log
19
cd src
0 commit comments