rigger 0.12.0

One seat for all your projects and tasks: a local record of what is done, what is next and when it ships - read by you and your coding assistant
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/env node
// Thin launcher: forwards everything to the rigger binary, downloading it on
// first run when the postinstall script was skipped (npm v12 default).
const fs = require("fs");
const { spawnSync } = require("child_process");
const { install, exePath } = require("./download");

function exec() {
  const result = spawnSync(exePath, process.argv.slice(2), { stdio: "inherit" });
  process.exit(result.status === null ? 1 : result.status);
}

if (fs.existsSync(exePath)) {
  exec();
} else {
  console.error("@lacodda/rigger: binary not present yet - downloading it now");
  install(exec);
}