@rui.branco/claude-commands-mcp 2.0.32 → 2.0.33

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/index.js +3 -3
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -10,6 +10,7 @@ import {
10
10
  statSync,
11
11
  mkdirSync,
12
12
  writeFileSync,
13
+ appendFileSync,
13
14
  } from "fs";
14
15
  import { join, dirname, extname } from "path";
15
16
  import { fileURLToPath } from "url";
@@ -300,9 +301,8 @@ server.tool(
300
301
  mkdirSync(fileDir, { recursive: true });
301
302
  }
302
303
 
303
- if (append && existsSync(filePath)) {
304
- const existing = readFileSync(filePath, "utf-8");
305
- writeFileSync(filePath, existing + content, "utf-8");
304
+ if (append) {
305
+ appendFileSync(filePath, content, "utf-8");
306
306
  } else {
307
307
  writeFileSync(filePath, content, "utf-8");
308
308
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rui.branco/claude-commands-mcp",
3
- "version": "2.0.32",
3
+ "version": "2.0.33",
4
4
  "description": "MCP server that serves Claude Code skill definitions from a git repo",
5
5
  "type": "module",
6
6
  "main": "index.js",