@pi-stef/catalog 0.3.4 → 0.3.5

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pi-stef/catalog",
3
- "version": "0.3.4",
3
+ "version": "0.3.5",
4
4
  "description": "Pi extension for managing skill/package catalogs.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -12,7 +12,7 @@
12
12
 
13
13
  import type { CommandArgs, CommandCtx } from "./types.js";
14
14
  import { removePackage } from "../catalog/crud.js";
15
- import { readCatalog, writeCatalog } from "../config/io.js";
15
+ import { readCatalog, writeCatalog, readLock, writeLock } from "../config/io.js";
16
16
  import { piUninstall } from "../util/exec.js";
17
17
 
18
18
  // ---------------------------------------------------------------------------
@@ -81,6 +81,13 @@ export async function removeCommand(
81
81
  const updated = removePackage(catalog, name);
82
82
  writeCatalog(updated, ctx.home);
83
83
 
84
+ // --- Remove from lock file ------------------------------------------------
85
+ const lock = readLock(ctx.home);
86
+ if (lock.packages[name]) {
87
+ delete lock.packages[name];
88
+ writeLock(lock, ctx.home);
89
+ }
90
+
84
91
  ctx.ui.notify(`Removed "${name}" from catalog`, "info");
85
92
 
86
93
  // --- Run pi uninstall -----------------------------------------------------