@ghl-ai/aw 0.1.36-beta.47 → 0.1.36-beta.48
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/commands/nuke.mjs +5 -3
- package/package.json +1 -1
package/commands/nuke.mjs
CHANGED
|
@@ -229,9 +229,11 @@ function removeIdeTasks() {
|
|
|
229
229
|
export async function nukeCommand(args) {
|
|
230
230
|
fmt.intro('aw nuke');
|
|
231
231
|
|
|
232
|
-
// Remove stale local .aw_registry symlink if present
|
|
233
|
-
|
|
234
|
-
|
|
232
|
+
// Remove stale local .aw_registry symlink if present (skip if cwd IS home — that's the global one)
|
|
233
|
+
if (process.cwd() !== HOME) {
|
|
234
|
+
const local = join(process.cwd(), '.aw_registry');
|
|
235
|
+
try { if (lstatSync(local).isSymbolicLink()) unlinkSync(local); } catch { /* fine */ }
|
|
236
|
+
}
|
|
235
237
|
|
|
236
238
|
const manifest = loadManifest();
|
|
237
239
|
|