flow-bin
Version:
Binary wrapper for Flow - A static type checker for JavaScript
23 lines (19 loc) • 768 B
JavaScript
/**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
;
var VERSION = require('./package.json').version;
var path = require('path');
module.exports =
process.platform === 'darwin'
? path.join(__dirname, 'flow-osx-v' + VERSION, 'flow') :
process.platform === 'linux' && process.arch === 'x64'
? path.join(__dirname, 'flow-linux64-v' + VERSION, 'flow') :
process.platform === 'win32' && process.arch === 'x64'
? path.join(__dirname, 'flow-win64-v' + VERSION, 'flow.exe') :
null;