1
1
mirror of https://github.com/primer/css.git synced 2024-11-22 19:01:02 +03:00

Put copy info back

This commit is contained in:
Jon Rohan 2021-03-25 14:16:57 -07:00
parent 37fd6eda48
commit 1ab06d37ca
No known key found for this signature in database
GPG Key ID: B0BBE304A9A0AECB
3 changed files with 15 additions and 0 deletions

View File

@ -1,4 +1,5 @@
*.log
.changeset/
.github/
.next/
.storybook/
@ -9,5 +10,7 @@ docs-test/
lib/
pages/
script/
# we ignore this because everything in src/ is copied out in script/prepublish
src/
static/
tests/

View File

@ -29,6 +29,7 @@
"eslint": "eslint script deprecations.js lib .storybook",
"eslint-docs": "eslint docs/{content,src,*.js}",
"postpublish": "script/postpublish",
"prepublishOnly": "script/prepublish",
"publish-storybook": "script/publish-storybook",
"start": "npm run dev",
"dev": "cd docs && npm install && npm run develop",

11
script/prepublish Executable file
View File

@ -0,0 +1,11 @@
#!/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 -