@k2works/claude-code-booster 2.5.0 → 2.5.1
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/bin/claude-code-booster +6 -4
- package/package.json +1 -1
package/bin/claude-code-booster
CHANGED
|
@@ -29,15 +29,17 @@ async function setupProject() {
|
|
|
29
29
|
if (await fs.pathExists(src)) {
|
|
30
30
|
await fs.ensureDir(dest);
|
|
31
31
|
|
|
32
|
-
// docs
|
|
32
|
+
// docs 直下の index.md はすべて除外する
|
|
33
33
|
const copyOptions = dir === 'docs'
|
|
34
34
|
? {
|
|
35
35
|
overwrite: true,
|
|
36
36
|
errorOnExist: false,
|
|
37
37
|
filter: (from, to) => {
|
|
38
|
-
// docs 直下の index.md
|
|
39
|
-
|
|
40
|
-
|
|
38
|
+
// docs 直下の index.md をすべて除外する(他は全てコピー)
|
|
39
|
+
if (path.basename(from) === 'index.md' && path.dirname(from) === src) {
|
|
40
|
+
return false;
|
|
41
|
+
}
|
|
42
|
+
return true;
|
|
41
43
|
},
|
|
42
44
|
}
|
|
43
45
|
: { overwrite: true, errorOnExist: false };
|