@grindxp/cli 0.1.6 → 0.1.7

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 +10 -7
  2. package/package.json +51 -55
package/dist/index.js CHANGED
@@ -91650,18 +91650,21 @@ async function webServeCommand(args) {
91650
91650
  });
91651
91651
  }
91652
91652
  function resolveWeb() {
91653
- let webDir;
91653
+ const embedded = join9(import.meta.dir, "web", "server", "server.js");
91654
+ if (existsSync9(embedded)) {
91655
+ return { ok: true, serverEntry: embedded };
91656
+ }
91654
91657
  try {
91655
91658
  const pkgJson = Bun.resolveSync("@grindxp/web/package.json", import.meta.dir);
91656
- webDir = dirname2(pkgJson);
91659
+ const webDir = dirname2(pkgJson);
91660
+ const serverEntry = join9(webDir, "dist", "server", "server.js");
91661
+ if (!existsSync9(serverEntry)) {
91662
+ return { ok: false, reason: "not-built" };
91663
+ }
91664
+ return { ok: true, serverEntry };
91657
91665
  } catch {
91658
- return { ok: false, reason: "not-installed" };
91659
- }
91660
- const serverEntry = join9(webDir, "dist", "server", "server.js");
91661
- if (!existsSync9(serverEntry)) {
91662
91666
  return { ok: false, reason: "not-built" };
91663
91667
  }
91664
- return { ok: true, serverEntry };
91665
91668
  }
91666
91669
  async function isPortReachable(port) {
91667
91670
  try {
package/package.json CHANGED
@@ -1,57 +1,53 @@
1
1
  {
2
- "name": "@grindxp/cli",
3
- "version": "0.1.6",
4
- "description": "Grind — a gamified productivity CLI. Track quests, earn XP, build streaks.",
5
- "keywords": [
6
- "cli",
7
- "gamification",
8
- "productivity",
9
- "quests",
10
- "streaks",
11
- "xp"
12
- ],
13
- "homepage": "https://grindxp.app",
14
- "license": "MIT",
15
- "repository": {
16
- "type": "git",
17
- "url": "git+https://github.com/esau-morais/grind.git"
18
- },
19
- "bin": {
20
- "grindxp": "./dist/index.js"
21
- },
22
- "files": [
23
- "dist"
24
- ],
25
- "type": "module",
26
- "main": "./dist/index.js",
27
- "exports": {
28
- ".": "./dist/index.js"
29
- },
30
- "publishConfig": {
31
- "access": "public"
32
- },
33
- "scripts": {
34
- "start": "bun src/index.ts",
35
- "build": "bun build-npm.ts && chmod +x dist/index.js",
36
- "build:binary": "bun build-binary.ts",
37
- "typecheck": "tsc -p tsconfig.json --noEmit",
38
- "prepublishOnly": "bun run build && bun run typecheck"
39
- },
40
- "dependencies": {
41
- "@libsql/client": "^0.15.15",
42
- "@opentui/core": "0.1.82"
43
- },
44
- "devDependencies": {
45
- "@clack/prompts": "^1.0.1",
46
- "@grindxp/core": "0.1.0",
47
- "@types/qrcode-terminal": "0.12.2",
48
- "@whiskeysockets/baileys": "7.0.0-rc.9",
49
- "qrcode-terminal": "0.12.0"
50
- },
51
- "optionalDependencies": {
52
- "@grindxp/web": "0.1.0"
53
- },
54
- "engines": {
55
- "bun": ">=1.0.0"
56
- }
2
+ "name": "@grindxp/cli",
3
+ "version": "0.1.7",
4
+ "description": "Grind — a gamified productivity CLI. Track quests, earn XP, build streaks.",
5
+ "keywords": [
6
+ "cli",
7
+ "gamification",
8
+ "productivity",
9
+ "quests",
10
+ "streaks",
11
+ "xp"
12
+ ],
13
+ "homepage": "https://grindxp.app",
14
+ "license": "MIT",
15
+ "repository": {
16
+ "type": "git",
17
+ "url": "git+https://github.com/esau-morais/grind.git"
18
+ },
19
+ "bin": {
20
+ "grindxp": "./dist/index.js"
21
+ },
22
+ "files": ["dist"],
23
+ "type": "module",
24
+ "main": "./dist/index.js",
25
+ "exports": {
26
+ ".": "./dist/index.js"
27
+ },
28
+ "publishConfig": {
29
+ "access": "public"
30
+ },
31
+ "scripts": {
32
+ "start": "bun src/index.ts",
33
+ "build": "bun build-npm.ts && chmod +x dist/index.js",
34
+ "build:binary": "bun build-binary.ts",
35
+ "typecheck": "tsc -p tsconfig.json --noEmit",
36
+ "prepublishOnly": "bun run build && bun run typecheck"
37
+ },
38
+ "dependencies": {
39
+ "@libsql/client": "^0.15.15",
40
+ "@opentui/core": "0.1.82"
41
+ },
42
+ "devDependencies": {
43
+ "@clack/prompts": "^1.0.1",
44
+ "@grindxp/core": "0.1.0",
45
+ "@grindxp/tui": "0.1.0",
46
+ "@types/qrcode-terminal": "0.12.2",
47
+ "@whiskeysockets/baileys": "7.0.0-rc.9",
48
+ "qrcode-terminal": "0.12.0"
49
+ },
50
+ "engines": {
51
+ "bun": ">=1.0.0"
52
+ }
57
53
  }