adhdev 0.1.13 → 0.1.14

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 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -153,7 +153,10 @@ function checkPathExists(paths) {
153
153
  for (const p of paths) {
154
154
  if (p.includes("*")) {
155
155
  const home = (0, import_os.homedir)();
156
- const resolved = p.replace(/^C:\\\\Users\\\\\*/, home.replace(/\//g, "\\"));
156
+ const starIdx = p.indexOf("*");
157
+ const suffix = p.substring(starIdx + 1);
158
+ const homeNormalized = home.replace(/\//g, "\\");
159
+ const resolved = homeNormalized + suffix;
157
160
  if ((0, import_fs.existsSync)(resolved)) return resolved;
158
161
  } else {
159
162
  if ((0, import_fs.existsSync)(p)) return p;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adhdev",
3
- "version": "0.1.13",
3
+ "version": "0.1.14",
4
4
  "description": "ADHDev CLI — Detect, install and configure your IDE + AI agent extensions",
5
5
  "main": "dist/index.js",
6
6
  "bin": {