Skip to content

Commit 5a6579d

Browse files
committed
Copy README and LICENSE into pkg after building.
1 parent f6a302f commit 5a6579d

File tree

4 files changed

+42
-2
lines changed

4 files changed

+42
-2
lines changed

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,5 +60,8 @@
6060
"prettier": "1.17.0",
6161
"react": "^16.8.6",
6262
"react-dom": "^16.8.6"
63+
},
64+
"dependencies": {
65+
"copyfiles": "^2.1.0"
6366
}
6467
}

packages/react-async-devtools/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
"main": "src",
1919
"scripts": {
2020
"build": "pack build",
21+
"postbuild": "copyfiles -f ../../LICENSE ../../README.md pkg",
2122
"publish": "npm publish pkg"
2223
},
2324
"peerDependencies": {

packages/react-async/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"main": "src",
2121
"scripts": {
2222
"build": "pack build",
23+
"postbuild": "copyfiles -f ../../LICENSE ../../README.md pkg",
2324
"publish": "npm publish pkg"
2425
},
2526
"peerDependencies": {

yarn.lock

Lines changed: 37 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6103,6 +6103,18 @@ copy-to-clipboard@^3.0.8:
61036103
dependencies:
61046104
toggle-selection "^1.0.6"
61056105

6106+
copyfiles@^2.1.0:
6107+
version "2.1.0"
6108+
resolved "https://registry.yarnpkg.com/copyfiles/-/copyfiles-2.1.0.tgz#0e2a4188162d6b2f3c5adfe34e9c0bd564d23164"
6109+
integrity sha512-cAeDE0vL/koE9WSEGxqPpSyvU638Kgfu6wfrnj7kqp9FWa1CWsU54Coo6sdYZP4GstWa39tL/wIVJWfXcujgNA==
6110+
dependencies:
6111+
glob "^7.0.5"
6112+
minimatch "^3.0.3"
6113+
mkdirp "^0.5.1"
6114+
noms "0.0.0"
6115+
through2 "^2.0.1"
6116+
yargs "^11.0.0"
6117+
61066118
core-js-compat@^3.0.0, core-js-compat@^3.1.1:
61076119
version "3.1.4"
61086120
resolved "https://registry.yarnpkg.com/core-js-compat/-/core-js-compat-3.1.4.tgz#e4d0c40fbd01e65b1d457980fe4112d4358a7408"
@@ -8621,7 +8633,7 @@ [email protected]:
86218633
once "^1.3.0"
86228634
path-is-absolute "^1.0.0"
86238635

8624-
glob@^7.0.0, glob@^7.0.3, glob@^7.1.1, glob@^7.1.2, glob@^7.1.3, glob@^7.1.4:
8636+
glob@^7.0.0, glob@^7.0.3, glob@^7.0.5, glob@^7.1.1, glob@^7.1.2, glob@^7.1.3, glob@^7.1.4:
86258637
version "7.1.4"
86268638
resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.4.tgz#aa608a2f6c577ad357e1ae5a5c26d9a8d1969255"
86278639
integrity sha512-hkLPepehmnKk41pUGm3sYxoFs/umurYfYJCerbXEyFIWcAzvpipAgVkBqqT9RBKMGjnq6kMuyYwha6csxbiM1A==
@@ -12291,6 +12303,14 @@ node-releases@^1.1.25, node-releases@^1.1.3:
1229112303
dependencies:
1229212304
semver "^5.3.0"
1229312305

12306+
12307+
version "0.0.0"
12308+
resolved "https://registry.yarnpkg.com/noms/-/noms-0.0.0.tgz#da8ebd9f3af9d6760919b27d9cdc8092a7332859"
12309+
integrity sha1-2o69nzr51nYJGbJ9nNyAkqczKFk=
12310+
dependencies:
12311+
inherits "^2.0.1"
12312+
readable-stream "~1.0.31"
12313+
1229412314
"nopt@2 || 3":
1229512315
version "3.0.6"
1229612316
resolved "https://registry.yarnpkg.com/nopt/-/nopt-3.0.6.tgz#c6465dbf08abcd4db359317f79ac68a646b28ff9"
@@ -14955,6 +14975,16 @@ read@1, read@^1.0.7, read@~1.0.1:
1495514975
string_decoder "^1.1.1"
1495614976
util-deprecate "^1.0.1"
1495714977

14978+
readable-stream@~1.0.31:
14979+
version "1.0.34"
14980+
resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-1.0.34.tgz#125820e34bc842d2f2aaafafe4c2916ee32c157c"
14981+
integrity sha1-Elgg40vIQtLyqq+v5MKRbuMsFXw=
14982+
dependencies:
14983+
core-util-is "~1.0.0"
14984+
inherits "~2.0.1"
14985+
isarray "0.0.1"
14986+
string_decoder "~0.10.x"
14987+
1495814988
readdir-scoped-modules@^1.0.0:
1495914989
version "1.1.0"
1496014990
resolved "https://registry.yarnpkg.com/readdir-scoped-modules/-/readdir-scoped-modules-1.1.0.tgz#8d45407b4f870a0dcaebc0e28670d18e74514309"
@@ -16340,6 +16370,11 @@ string_decoder@^1.0.0, string_decoder@^1.1.1:
1634016370
dependencies:
1634116371
safe-buffer "~5.1.0"
1634216372

16373+
string_decoder@~0.10.x:
16374+
version "0.10.31"
16375+
resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-0.10.31.tgz#62e203bc41766c6c28c9fc84301dab1c5310fa94"
16376+
integrity sha1-YuIDvEF2bGwoyfyEMB2rHFMQ+pQ=
16377+
1634316378
string_decoder@~1.1.1:
1634416379
version "1.1.1"
1634516380
resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-1.1.1.tgz#9cf1611ba62685d7030ae9e4ba34149c3af03fc8"
@@ -16711,7 +16746,7 @@ throat@^4.0.0:
1671116746
resolved "https://registry.yarnpkg.com/throat/-/throat-4.1.0.tgz#89037cbc92c56ab18926e6ba4cbb200e15672a6a"
1671216747
integrity sha1-iQN8vJLFarGJJua6TLsgDhVnKmo=
1671316748

16714-
through2@^2.0.0, through2@^2.0.2, through2@~2.0.3:
16749+
through2@^2.0.0, through2@^2.0.1, through2@^2.0.2, through2@~2.0.3:
1671516750
version "2.0.5"
1671616751
resolved "https://registry.yarnpkg.com/through2/-/through2-2.0.5.tgz#01c1e39eb31d07cb7d03a96a70823260b23132cd"
1671716752
integrity sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==

0 commit comments

Comments
 (0)