@grindxp/cli 0.1.1 → 0.1.2

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,13 @@
1
+ {
2
+ "version": "7",
3
+ "dialect": "sqlite",
4
+ "entries": [
5
+ {
6
+ "idx": 0,
7
+ "version": "6",
8
+ "when": 1771988362833,
9
+ "tag": "0000_furry_chronomancer",
10
+ "breakpoints": true
11
+ }
12
+ ]
13
+ }
package/dist/index.js CHANGED
@@ -4147,6 +4147,9 @@ function getServiceStatePath() {
4147
4147
  return join(getGrindHome(), "service-state.json");
4148
4148
  }
4149
4149
  function getMigrationsPath() {
4150
+ const bundled = join(import.meta.dir, "drizzle");
4151
+ if (existsSync(join(bundled, "meta", "_journal.json")))
4152
+ return bundled;
4150
4153
  return join(import.meta.dir, "../drizzle");
4151
4154
  }
4152
4155
  function ensureGrindHome() {
@@ -41704,7 +41707,7 @@ function buildGoogleOAuthConfig(clientId, gmailEnabled, clientSecret) {
41704
41707
  GOOGLE_SCOPE_CALENDAR,
41705
41708
  ...gmailEnabled ? [GOOGLE_SCOPE_GMAIL_READONLY, GOOGLE_SCOPE_GMAIL_SEND] : []
41706
41709
  ].join(" ");
41707
- const resolvedSecret = clientSecret ?? process.env.GRIND_GOOGLE_CLIENT_SECRET;
41710
+ const resolvedSecret = clientSecret ?? "";
41708
41711
  return {
41709
41712
  method: "callback",
41710
41713
  issuer: "https://accounts.google.com",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@grindxp/cli",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "Grind — a gamified productivity CLI. Track quests, earn XP, build streaks.",
5
5
  "keywords": [
6
6
  "cli",
@@ -32,7 +32,7 @@
32
32
  },
33
33
  "scripts": {
34
34
  "start": "bun src/index.ts",
35
- "build": "bun build src/index.ts --outdir dist --target bun --sourcemap=none --external @libsql/client --banner '#!/usr/bin/env bun' && chmod +x dist/index.js",
35
+ "build": "bun build-npm.ts && chmod +x dist/index.js",
36
36
  "build:binary": "bun build-binary.ts",
37
37
  "typecheck": "tsc -p tsconfig.json --noEmit",
38
38
  "prepublishOnly": "bun run build && bun run typecheck"