@tempoxyz/patron 0.0.28 → 0.0.30

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/bin.js CHANGED
@@ -1,17 +1,25 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire as __patronCreateRequire } from 'node:module'
3
3
  const require = __patronCreateRequire(import.meta.url)
4
+ import {
5
+ inferHome
6
+ } from "./chunks/chunk-NDBTADXZ.js";
7
+ import "./chunks/chunk-GTMLTZRN.js";
4
8
 
5
9
  // src/bin.ts
10
+ if (!process.env.PATRON_HOME) {
11
+ const home = inferHome(process.argv[1]);
12
+ if (home) process.env.PATRON_HOME = home;
13
+ }
6
14
  if (process.argv[2] === "hook") {
7
- const { runHookProcess } = await import("./chunks/hook-process-IMQMGXBT.js");
15
+ const { runHookProcess } = await import("./chunks/hook-process-ETJ3UZZT.js");
8
16
  await runHookProcess().catch(() => void 0);
9
17
  process.exit(0);
10
18
  } else if (process.argv[2] === "pay") {
11
- const { runPayProcess } = await import("./chunks/hook-process-IMQMGXBT.js");
19
+ const { runPayProcess } = await import("./chunks/hook-process-ETJ3UZZT.js");
12
20
  await runPayProcess().catch(() => void 0);
13
21
  process.exit(0);
14
22
  } else {
15
- const { run } = await import("./chunks/-5Q7V7W7W.js");
23
+ const { run } = await import("./chunks/-WRUP4P4C.js");
16
24
  process.exitCode = await run(process.argv.slice(2));
17
25
  }