File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change 33
33
"testonly" : " babel-node ./node_modules/.bin/_mocha $npm_package_options_mocha" ,
34
34
"lint" : " eslint src" ,
35
35
"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" ,
37
38
"watch" : " babel-node scripts/watch.js" ,
38
39
"cover" : " babel-node node_modules/.bin/isparta cover --root src --report html node_modules/.bin/_mocha -- $npm_package_options_mocha" ,
39
40
"cover:lcov" : " babel-node node_modules/.bin/isparta cover --root src --report lcovonly node_modules/.bin/_mocha -- $npm_package_options_mocha"
Original file line number Diff line number Diff line change
1
+ /* @flow */
1
2
/**
2
3
* Copyright (c) 2015, Facebook, Inc.
3
4
* All rights reserved.
You can’t perform that action at this time.
0 commit comments