@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.
- package/dist/index.js +10 -7
- 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
|
-
|
|
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
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
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
|
}
|