adhdev 0.1.9 → 0.1.10

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 +4 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -892,12 +892,13 @@ async function suggestGlobalInstall() {
892
892
  const { execSync: execSyncLocal } = await import("child_process");
893
893
  let isGloballyInstalled = false;
894
894
  try {
895
- const result = execSyncLocal("adhdev --version", {
895
+ const result = execSyncLocal("npm list -g adhdev --json 2>/dev/null || npm list -g adhdev --json 2>nul", {
896
896
  encoding: "utf-8",
897
- timeout: 5e3,
897
+ timeout: 1e4,
898
898
  stdio: ["pipe", "pipe", "pipe"]
899
899
  });
900
- isGloballyInstalled = result.trim().length > 0;
900
+ const parsed = JSON.parse(result);
901
+ isGloballyInstalled = !!parsed.dependencies?.adhdev;
901
902
  } catch {
902
903
  isGloballyInstalled = false;
903
904
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adhdev",
3
- "version": "0.1.9",
3
+ "version": "0.1.10",
4
4
  "description": "ADHDev CLI — Detect, install and configure your IDE + AI agent extensions",
5
5
  "main": "dist/index.js",
6
6
  "bin": {