relay-compiler-experimental
Advanced tools
Comparing version 0.0.0-master-8aeab18d to 0.0.0-master-954681dd
@@ -8,6 +8,8 @@ #!/usr/bin/env node | ||
* | ||
* @flow | ||
* @noflow | ||
* @format | ||
*/ | ||
'use strict'; | ||
var spawn = require('child_process').spawn; | ||
@@ -19,6 +21,5 @@ | ||
if (bin !== null) { | ||
spawn(bin, input, { stdio: 'inherit' }) | ||
.on('exit', process.exit); | ||
spawn(bin, input, {stdio: 'inherit'}).on('exit', process.exit); | ||
} else { | ||
throw new Error('Platform not supported.'); | ||
throw new Error('Platform not supported.'); | ||
} |
13
index.js
@@ -7,3 +7,3 @@ /** | ||
* | ||
* @flow | ||
* @noflow | ||
* @format | ||
@@ -16,12 +16,13 @@ */ | ||
let binary = null; | ||
let binary; | ||
if (process.platform === 'darwin') { | ||
binary = path.join(__dirname, 'macos-x64', 'relay'); | ||
binary = path.join(__dirname, 'macos-x64', 'relay'); | ||
} else if (process.platform === 'linux' && process.arch === 'x64') { | ||
binary = path.join(__dirname, 'linux-x64', 'relay') | ||
binary = path.join(__dirname, 'linux-x64', 'relay'); | ||
} else if (process.platform === 'win32' && process.arch === 'x64') { | ||
binary = path.join(__dirname, 'win-x64', 'relay.exe') | ||
binary = path.join(__dirname, 'win-x64', 'relay.exe'); | ||
} else { | ||
binary = null; | ||
} | ||
module.exports = binary; |
{ | ||
"name": "relay-compiler-experimental", | ||
"description": "Experimental version of the Relay Compiler", | ||
"version": "0.0.0-master-8aeab18d", | ||
"version": "0.0.0-master-954681dd", | ||
"keywords": [ | ||
@@ -14,5 +14,3 @@ "graphql", | ||
"main": "index.js", | ||
"bin": { | ||
"relay-compiler-experimental": "cli.js" | ||
} | ||
"bin": "cli.js" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
22425423
41