Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: flow/flow-bin
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 3af29ea9430f9a74910b84de1322986caa49b993
Choose a base ref
...
head repository: flow/flow-bin
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 15535c5b8fe01fca7da778c718f7c2d4ee8811c4
Choose a head ref
  • 2 commits
  • 6 files changed
  • 2 contributors

Commits on Mar 18, 2021

  1. include linux arm64 build

    new in v0.147.0
    mroch committed Mar 18, 2021
    Copy the full SHA
    5ead9df View commit details

Commits on Mar 19, 2021

  1. v0.147.0

    flow-bot committed Mar 19, 2021
    Copy the full SHA
    15535c5 View commit details
Showing with 20 additions and 6 deletions.
  1. +4 −0 Makefile
  2. +4 −3 SHASUM256.txt
  3. +2 −0 index.js
  4. +2 −1 package.json
  5. +1 −1 readme.md
  6. +7 −1 test.js
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -2,6 +2,7 @@ VERSION ?= $(shell node -p 'require("./package.json").version')
FLOW_VERSION := $(patsubst v%,%,$(VERSION))
FLOW_BINS = \
flow-linux64-v$(FLOW_VERSION)/flow \
flow-linux-arm64-v$(FLOW_VERSION)/flow \
flow-osx-v$(FLOW_VERSION)/flow \
flow-win64-v$(FLOW_VERSION)/flow.exe

@@ -55,6 +56,9 @@ get-flow = \
flow-linux64-v%/flow:
$(get-flow)

flow-linux-arm64-v%/flow:
$(get-flow)

flow-osx-v%/flow:
$(get-flow)

7 changes: 4 additions & 3 deletions SHASUM256.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
ce2200926b5f82057792ed2ce4106319093e3d285501255c83641fdb0d654895 flow-linux64-v0.146.0/flow
3914caa2aea417d7590c62ee629087dd51c900ea40a7ce48d9c1b4fdac851cdc flow-osx-v0.146.0/flow
4a82da2fe42063287c1e55ffa201648bf9edc9964501cdc925bf64e6fe39b85d flow-win64-v0.146.0/flow.exe
f2945ae4d07575447b11826700adf0e747e4b54584578017b63218a65704f79d flow-linux64-v0.147.0/flow
203324a13712db59776ec7d067f70169278f15b90d66f49ad4b47b3104e2cf59 flow-linux-arm64-v0.147.0/flow
e21a54d12e1b39bd495b782a7cc8378aaa9260db1ab5b0577d3b1bc257ebcc52 flow-osx-v0.147.0/flow
6ed699626de85eab34a1fdc1ecd891c4b85a5ccd1933cc2813edd7d6611cc8a4 flow-win64-v0.147.0/flow.exe
2 changes: 2 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -14,6 +14,8 @@ module.exports =
? path.join(__dirname, 'flow-osx-v' + VERSION, 'flow') :
process.platform === 'linux' && process.arch === 'x64'
? path.join(__dirname, 'flow-linux64-v' + VERSION, 'flow') :
process.platform === 'linux' && process.arch === 'arm64'
? path.join(__dirname, 'flow-linux-arm64-v' + VERSION, 'flow') :
process.platform === 'win32' && process.arch === 'x64'
? path.join(__dirname, 'flow-win64-v' + VERSION, 'flow.exe') :
null;
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "flow-bin",
"version": "0.146.0",
"version": "0.147.0",
"description": "Binary wrapper for Flow - A static type checker for JavaScript",
"license": "MIT",
"repository": "flowtype/flow-bin",
@@ -21,6 +21,7 @@
},
"files": [
"flow-linux64-v*/flow",
"flow-linux-arm64-v*/flow",
"flow-osx-v*/flow",
"flow-win64-v*/flow.exe",
"vendor",
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@

> Binary wrapper for [Flow](http://flowtype.org) - A static type checker for JavaScript
OS X, Linux (64-bit) and Windows binaries are currently [provided](https://flow.org/en/docs/install/).
macOS (x64), Linux (x64, arm64) and Windows (x64) binaries are currently [provided](https://flow.org/en/docs/install/).


## CLI
8 changes: 7 additions & 1 deletion test.js
Original file line number Diff line number Diff line change
@@ -11,12 +11,18 @@ process.platform = 'darwin';
delete require.cache[require.resolve('./')];
fs.statSync(require('./'));

// linux
// linux x64
process.platform = 'linux';
process.arch = 'x64'
delete require.cache[require.resolve('./')];
fs.statSync(require('./'));

// linux arm64
process.platform = 'linux';
process.arch = 'arm64'
delete require.cache[require.resolve('./')];
fs.statSync(require('./'));

// windows
process.platform = 'win32';
process.arch = 'x64'