@rescript/tools
Advanced tools
Comparing version
@@ -6,15 +6,12 @@ #!/usr/bin/env node | ||
const child_process = require("child_process"); | ||
const path = require("path"); | ||
const { getBinaryPath } = require("./getBinaryPath"); | ||
const platformArch = | ||
process.arch === "x64" ? process.platform : process.platform + process.arch; | ||
const binPath = path.join(__dirname, "..", "binaries", platformArch, "rescript-tools.exe"); | ||
const args = process.argv.slice(2); | ||
const spawn = child_process.spawnSync(binPath, args, { stdio: "inherit" }); | ||
const spawn = child_process.spawnSync(getBinaryPath(), args, { | ||
stdio: "inherit", | ||
}); | ||
if (spawn.status != null) { | ||
process.exit(spawn.status) | ||
process.exit(spawn.status); | ||
} |
{ | ||
"name": "@rescript/tools", | ||
"description": "ReScript Tools", | ||
"version": "0.6.0", | ||
"version": "0.6.1", | ||
"author": "ReScript Team", | ||
@@ -17,2 +17,3 @@ "license": "MIT", | ||
"npm/cli.js", | ||
"npm/getBinaryPath.js", | ||
"npm/*.res", | ||
@@ -19,0 +20,0 @@ "npm/*.resi", |
{ | ||
"name": "@rescript/tools", | ||
"version": "0.6.0", | ||
"version": "0.6.1", | ||
"sources": [ | ||
@@ -5,0 +5,0 @@ { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
38463263
013
8.33%41
57.69%