File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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"
Original file line number Diff line number Diff line change 1+ /* @flow */
12/**
23 * Copyright (c) 2015, Facebook, Inc.
34 * All rights reserved.
You can’t perform that action at this time.
0 commit comments