@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.
- package/index.js +3 -3
- 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
|
|
304
|
-
|
|
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
|
}
|