yaml-flow 5.4.0 → 5.4.2

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.
@@ -9821,15 +9821,21 @@ function shouldSuppressSpawn() {
9821
9821
  return process.env.BOARD_LIVE_CARDS_NO_SPAWN === "1";
9822
9822
  }
9823
9823
  function getCliInvocationPath(cliDir) {
9824
- const jsPath = path7.join(cliDir, "board-live-cards-cli.js");
9825
- if (fs7.existsSync(jsPath)) {
9826
- return { cmd: process.execPath, args: [jsPath] };
9827
- }
9828
9824
  const tsPath = path7.join(cliDir, "board-live-cards-cli.ts");
9829
- const localTsx = path7.join(cliDir, "..", "..", "node_modules", ".bin", "tsx");
9825
+ const localTsxBin = path7.join(cliDir, "..", "..", "node_modules", ".bin", "tsx");
9826
+ const localTsxMjs = path7.join(cliDir, "..", "..", "node_modules", "tsx", "dist", "cli.mjs");
9827
+ const localTsx = fs7.existsSync(localTsxMjs) ? localTsxMjs : localTsxBin;
9830
9828
  if (fs7.existsSync(tsPath) && fs7.existsSync(localTsx)) {
9831
9829
  return { cmd: process.execPath, args: [localTsx, tsPath] };
9832
9830
  }
9831
+ const distJsPath = path7.join(cliDir, "dist", "cli", "board-live-cards-cli.js");
9832
+ if (fs7.existsSync(distJsPath)) {
9833
+ return { cmd: process.execPath, args: [distJsPath] };
9834
+ }
9835
+ const jsPath = path7.join(cliDir, "board-live-cards-cli.js");
9836
+ if (fs7.existsSync(jsPath)) {
9837
+ return { cmd: process.execPath, args: [jsPath] };
9838
+ }
9833
9839
  return null;
9834
9840
  }
9835
9841
  function buildCliInvocation(cliDir, command, args) {