@docubook/cli 0.2.9 → 0.2.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@docubook/cli",
3
- "version": "0.2.9",
3
+ "version": "0.2.10",
4
4
  "description": "DocuBook CLI tool that helps you initialize, update, and deploy documentation directly from your terminal.",
5
5
  "type": "module",
6
6
  "files": [
@@ -44,6 +44,9 @@
44
44
  "engines": {
45
45
  "node": ">=18.0.0"
46
46
  },
47
+ "publishConfig": {
48
+ "registry": "https://registry.npmjs.org/"
49
+ },
47
50
  "scripts": {
48
51
  "dev": "node src/index.js",
49
52
  "lint": "eslint src/",
@@ -254,6 +254,26 @@ function installGlobal(packageName, version, packageManager) {
254
254
  }
255
255
 
256
256
  execSync(cmd, { stdio: "inherit" });
257
+
258
+ // Clear package manager cache to ensure symlinks are refreshed
259
+ try {
260
+ switch (packageManager) {
261
+ case "npm":
262
+ execSync("npm cache clean --force", { stdio: "pipe" });
263
+ break;
264
+ case "yarn":
265
+ execSync("yarn cache clean", { stdio: "pipe" });
266
+ break;
267
+ case "pnpm":
268
+ execSync("pnpm store prune", { stdio: "pipe" });
269
+ break;
270
+ case "bun":
271
+ execSync("bun pm cache rm", { stdio: "pipe" });
272
+ break;
273
+ }
274
+ } catch {
275
+ // Ignore cache clean errors - they don't affect installation
276
+ }
257
277
  }
258
278
 
259
279
  /**