teak-cli 1.0.49 → 1.0.50

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.
Files changed (2) hide show
  1. package/dist/index.js +9 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -2315,7 +2315,15 @@ import {
2315
2315
  import { createServer } from "node:http";
2316
2316
  import { homedir, platform } from "node:os";
2317
2317
  import path2 from "node:path";
2318
- var VERSION = "1.0.48";
2318
+ var readPackageVersion = () => {
2319
+ try {
2320
+ const manifest = JSON.parse(readFileSync(new URL("../package.json", import.meta.url), "utf8"));
2321
+ return typeof manifest.version === "string" ? manifest.version : "0.0.0";
2322
+ } catch {
2323
+ return "0.0.0";
2324
+ }
2325
+ };
2326
+ var VERSION = readPackageVersion();
2319
2327
  var EXIT = { api: 1, auth: 3, notFound: 4, rateLimited: 5, usage: 2 };
2320
2328
  var DEFAULT_API_URL = "https://api.teakvault.com";
2321
2329
  var DEFAULT_AUTH_URL = "https://app.teakvault.com";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "teak-cli",
3
- "version": "1.0.49",
3
+ "version": "1.0.50",
4
4
  "description": "Command line client for Teak.",
5
5
  "type": "module",
6
6
  "bin": {