oreshnik-cli 0.1.0-alpha → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli.js CHANGED
@@ -6115,16 +6115,10 @@ async function runPreflight(operator, sprint, repoPath, desc) {
6115
6115
  try {
6116
6116
  const { execCommandInherit: execCommandInherit2 } = await Promise.resolve().then(() => (init_exec(), exec_exports));
6117
6117
  const resolvedRepo = isAbsolute9(repoPath) ? repoPath : resolve9(ROOT19, repoPath);
6118
- execCommandInherit2("node", [
6119
- ROOT19 + "/dist/cli.js",
6120
- "preflight",
6121
- "--sprint",
6122
- sprint,
6123
- "--operator",
6124
- operator,
6125
- "--desc",
6126
- desc
6127
- ], { cwd: resolvedRepo, timeout: 12e4 });
6118
+ const localCli = join19(ROOT19, "dist", "cli.js");
6119
+ const command = existsSync19(localCli) ? "node" : "oreshnik";
6120
+ const args = existsSync19(localCli) ? [localCli, "preflight", "--sprint", sprint, "--operator", operator, "--desc", desc] : ["preflight", "--sprint", sprint, "--operator", operator, "--desc", desc];
6121
+ execCommandInherit2(command, args, { cwd: resolvedRepo, timeout: 12e4 });
6128
6122
  } catch (e) {
6129
6123
  log("FAIL", "Preflight failed for " + sprint + ": " + String(e).slice(0, 100));
6130
6124
  }