turnout 0.2.2

A developer's switchyard: point local apps at any backend stand, keep servers and secrets at hand, build and deploy from any directory
1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/bin/env node
// Thin launcher: forwards everything to the downloaded turnout binary.
const path = require("path");
const { spawnSync } = require("child_process");

const exe = path.join(__dirname, process.platform === "win32" ? "turnout.exe" : "turnout");
if (!require("fs").existsSync(exe)) {
  console.error("turnout-cli: binary missing - reinstall the package (npm i -g turnout-cli)");
  process.exit(1);
}
const result = spawnSync(exe, process.argv.slice(2), { stdio: "inherit" });
process.exit(result.status === null ? 1 : result.status);