letmecook 0.0.4 → 0.0.6

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/index.ts +7 -0
  2. package/package.json +8 -6
package/index.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  #!/usr/bin/env bun
2
2
 
3
+ import pkg from "./package.json";
3
4
  import { parseRepoSpec, type RepoSpec } from "./src/types";
4
5
  import { listSessions, getSession, updateLastAccessed, deleteAllSessions } from "./src/sessions";
5
6
  import { createRenderer, destroyRenderer } from "./src/ui/renderer";
@@ -21,6 +22,7 @@ Usage:
21
22
  letmecook --nuke <session-name> Delete a session
22
23
  letmecook --nuke-all Delete all sessions
23
24
  letmecook --help Show this help
25
+ letmecook --version Show version
24
26
 
25
27
  Examples:
26
28
  # Interactive mode (new - recommended)
@@ -220,6 +222,11 @@ console.clear();
220
222
  const args = process.argv.slice(2);
221
223
  const firstArg = args[0];
222
224
 
225
+ if (firstArg === "--version" || firstArg === "-v") {
226
+ console.log(`letmecook v${pkg.version}`);
227
+ process.exit(0);
228
+ }
229
+
223
230
  if (args.length === 0 || firstArg === "--help" || firstArg === "-h") {
224
231
  printUsage();
225
232
  process.exit(0);
package/package.json CHANGED
@@ -1,19 +1,18 @@
1
1
  {
2
2
  "name": "letmecook",
3
- "version": "0.0.4",
3
+ "version": "0.0.6",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/rustydotwtf/letmecook.git"
7
7
  },
8
- "bin": {
9
- "letmecook": "./bin.js"
10
- },
8
+ "bin": "./bin.js",
11
9
  "files": [
12
10
  "bin.js",
13
11
  "index.ts",
14
12
  "src"
15
13
  ],
16
14
  "type": "module",
15
+ "main": "./bin.js",
17
16
  "module": "index.ts",
18
17
  "publishConfig": {
19
18
  "access": "public",
@@ -23,11 +22,14 @@
23
22
  "prepare": "husky",
24
23
  "lint": "oxlint",
25
24
  "lint:fix": "oxlint --fix",
26
- "lint:ci": "oxlint --type-aware --deny-warnings --tsconfig ./tsconfig.json",
25
+ "lint:ci": "oxlint --deny-warnings",
27
26
  "format": "oxfmt --write .",
28
27
  "format:check": "oxfmt --check .",
29
28
  "check": "bun run lint && bun run format:check",
30
- "fix": "bun run lint:fix && bun run format"
29
+ "fix": "bun run lint:fix && bun run format",
30
+ "docs": "cd docs && bun start",
31
+ "docs:build": "cd docs && bun run build",
32
+ "docs:serve": "cd docs && bun run serve"
31
33
  },
32
34
  "dependencies": {
33
35
  "@opentui/core": "^0.1.63",