@masslessai/push-todo 3.5.3 → 3.5.4
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/lib/daemon.js +2 -2
- package/package.json +1 -1
package/lib/daemon.js
CHANGED
|
@@ -459,7 +459,7 @@ function getProjectPath(gitRemote) {
|
|
|
459
459
|
|
|
460
460
|
try {
|
|
461
461
|
const data = JSON.parse(readFileSync(REGISTRY_FILE, 'utf8'));
|
|
462
|
-
return data.projects?.[gitRemote]?.
|
|
462
|
+
return data.projects?.[gitRemote]?.localPath || data.projects?.[gitRemote]?.local_path || null;
|
|
463
463
|
} catch {
|
|
464
464
|
return null;
|
|
465
465
|
}
|
|
@@ -474,7 +474,7 @@ function getListedProjects() {
|
|
|
474
474
|
const data = JSON.parse(readFileSync(REGISTRY_FILE, 'utf8'));
|
|
475
475
|
const result = {};
|
|
476
476
|
for (const [remote, info] of Object.entries(data.projects || {})) {
|
|
477
|
-
result[remote] = info.
|
|
477
|
+
result[remote] = info.localPath || info.local_path;
|
|
478
478
|
}
|
|
479
479
|
return result;
|
|
480
480
|
} catch {
|