Package Exports
- flow-bin
- flow-bin/cli
- flow-bin/package.json
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (flow-bin) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
flow-bin 
Binary wrapper for Flow - A static type checker for JavaScript
OS X, Linux (64-bit) and Windows binaries are currently provided.
CLI
$ npm install --global flow-bin$ flow --helpAPI
$ npm install --save flow-binconst execFile = require('child_process').execFile;
const flow = require('flow-bin');
execFile(flow, ['check'], (err, stdout) => {
console.log(stdout);
});License
flow-bin is MIT-licensed.
Releases
New Release
- Update the "version" in
package.jsonto reflect the flow version to publish. (For now,flow-bin's version is also the version of theflowbinary). - Run
make.
- There should be 2 uncommitted changes at this point:
SHASUM256.txtandpackage.json.
- Commit the changes with the message
Updated binary to v0.30.0, with the correct version. - Push/merge to
master. - Tag the update:
git checkout master &&
git pull &&
make test &&
git tag v$(node -p 'require("./package.json").version') &&
git push v$(node -p 'require("./package.json").version')- Publish to npm.
Inspect a Release Before Publishing
npm pack
tar xf "flow-bin-$(node -p 'require("./package.json").version').tgz"
cd package
npm run verify