relay-compiler-experimental
Advanced tools
Comparing version 0.0.0-master-46fc3c5d to 0.0.0-master-471f1049
@@ -12,2 +12,4 @@ #!/usr/bin/env node | ||
'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.'); | ||
} |
@@ -17,11 +17,11 @@ /** | ||
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; | ||
binary = null; | ||
} | ||
module.exports = binary; |
{ | ||
"name": "relay-compiler-experimental", | ||
"description": "Experimental version of the Relay Compiler", | ||
"version": "0.0.0-master-46fc3c5d", | ||
"version": "0.0.0-master-471f1049", | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
22425423