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:
parent
37fd6eda48
commit
1ab06d37ca
@ -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/
|
||||
|
@ -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
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