Skip to content

Commit 3eb0cc2

Browse files
authored
Merge pull request #155 from jamiehodge/master
Build .flow files and include package.json
2 parents 9496e3f + b620a4d commit 3eb0cc2

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-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 && 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"

src/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* @flow */
12
/**
23
* Copyright (c) 2015, Facebook, Inc.
34
* All rights reserved.

0 commit comments

Comments
 (0)