@pretense/cli 0.6.9 → 0.6.10

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.
@@ -0,0 +1,24 @@
1
+ #!/usr/bin/env node
2
+ import {
3
+ init_esm_shims
4
+ } from "./chunk-TWMRHZGM.js";
5
+
6
+ // src/version.ts
7
+ init_esm_shims();
8
+ import { readFileSync } from "fs";
9
+ import { fileURLToPath } from "url";
10
+ import { dirname, resolve } from "path";
11
+ function versionFromPackageJson() {
12
+ try {
13
+ const here = dirname(fileURLToPath(import.meta.url));
14
+ const parsed = JSON.parse(readFileSync(resolve(here, "../package.json"), "utf8"));
15
+ return typeof parsed.version === "string" ? parsed.version : void 0;
16
+ } catch {
17
+ return void 0;
18
+ }
19
+ }
20
+ var PRETENSE_VERSION = (true ? "0.6.10" : void 0) ?? versionFromPackageJson() ?? "0.0.0-unknown";
21
+
22
+ export {
23
+ PRETENSE_VERSION
24
+ };