mirror of
https://github.com/primer/css.git
synced 2024-11-23 03:10:10 +03:00
Put copy info back
This commit is contained in:
parent
37fd6eda48
commit
1ab06d37ca
@ -1,4 +1,5 @@
|
|||||||
*.log
|
*.log
|
||||||
|
.changeset/
|
||||||
.github/
|
.github/
|
||||||
.next/
|
.next/
|
||||||
.storybook/
|
.storybook/
|
||||||
@ -9,5 +10,7 @@ docs-test/
|
|||||||
lib/
|
lib/
|
||||||
pages/
|
pages/
|
||||||
script/
|
script/
|
||||||
|
# we ignore this because everything in src/ is copied out in script/prepublish
|
||||||
|
src/
|
||||||
static/
|
static/
|
||||||
tests/
|
tests/
|
||||||
|
@ -29,6 +29,7 @@
|
|||||||
"eslint": "eslint script deprecations.js lib .storybook",
|
"eslint": "eslint script deprecations.js lib .storybook",
|
||||||
"eslint-docs": "eslint docs/{content,src,*.js}",
|
"eslint-docs": "eslint docs/{content,src,*.js}",
|
||||||
"postpublish": "script/postpublish",
|
"postpublish": "script/postpublish",
|
||||||
|
"prepublishOnly": "script/prepublish",
|
||||||
"publish-storybook": "script/publish-storybook",
|
"publish-storybook": "script/publish-storybook",
|
||||||
"start": "npm run dev",
|
"start": "npm run dev",
|
||||||
"dev": "cd docs && npm install && npm run develop",
|
"dev": "cd docs && npm install && npm run develop",
|
||||||
|
11
script/prepublish
Executable file
11
script/prepublish
Executable 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 -
|
Loading…
Reference in New Issue
Block a user