Skip to content

Commit 9f21d16

Browse files
committed
build .flow files and include package.json
1 parent 9496e3f commit 9f21d16

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@
3333
"testonly": "babel-node ./node_modules/.bin/_mocha $npm_package_options_mocha",
3434
"lint": "eslint src",
3535
"check": "flow check",
36-
"build": "rm -rf lib/* && babel src --ignore __tests__ --out-dir lib",
36+
"build": "rm -rf lib/* && babel src --ignore __tests__ --out-dir lib && cp package.json lib/ && npm run build:flow",
37+
"build:flow": "find ./src -name '*.js' -not -path '*/__tests__*' | while read filepath; do cp $filepath `echo $filepath | sed 's/\\/src\\//\\/lib\\//g'`.flow; done",
3738
"watch": "babel-node scripts/watch.js",
3839
"cover": "babel-node node_modules/.bin/isparta cover --root src --report html node_modules/.bin/_mocha -- $npm_package_options_mocha",
3940
"cover:lcov": "babel-node node_modules/.bin/isparta cover --root src --report lcovonly node_modules/.bin/_mocha -- $npm_package_options_mocha"

0 commit comments

Comments
 (0)