Skip to content

Commit

Permalink
create copy-flow-files script
Browse files Browse the repository at this point in the history
  • Loading branch information
jedwards1211 committed Nov 30, 2016
1 parent ca8ad0d commit 9e48c63
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@
"flow:coverage": "for file in src/**.js test/**.js; do echo $file; flow coverage $file; done",
"flow:watch": "flow-watch --ignore lib/ --ignore node_modules/ --watch .flowconfig --watch src/ --watch test/",
"gen-flow-files": "flow gen-flow-files src/ --out-dir lib",
"copy-flow-files": "cd src; for file in *.js.flow **/*.js.flow; do mkdir -p ../lib/$(dirname $file) && cp $file ../lib/$file && echo \"$file -> ../lib/$file\"; done",
"build": "rimraf lib && babel src --out-dir lib",
"test": "NODE_ENV=production BABEL_ENV=test nyc --reporter=lcov --reporter=text mocha $npm_package_config_mocha",
"prepublish": "npm run lint && flow && npm test && npm run build && npm run gen-flow-files",
"prepublish": "npm run lint && flow && npm test && npm run build && npm run copy-flow-files",
"postpublish": "git tag -a v$npm_package_version -m v$npm_package_version && git push origin v$npm_package_version"
},
"config": {
Expand Down
4 changes: 4 additions & 0 deletions src/index.js.flow
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// @flow


declare module.exports: {};

0 comments on commit 9e48c63

Please sign in to comment.