@gangvy/claude-code-measurement-marker-check 0.1.0 → 0.1.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.
|
@@ -52,6 +52,19 @@ function removeTarget(target) {
|
|
|
52
52
|
fs.rmSync(target, { recursive: true, force: true });
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
+
function copyDirRecursive(source, destination) {
|
|
56
|
+
const stat = fs.statSync(source);
|
|
57
|
+
if (stat.isDirectory()) {
|
|
58
|
+
fs.mkdirSync(destination, { recursive: true });
|
|
59
|
+
for (const child of fs.readdirSync(source)) {
|
|
60
|
+
copyDirRecursive(path.join(source, child), path.join(destination, child));
|
|
61
|
+
}
|
|
62
|
+
return;
|
|
63
|
+
}
|
|
64
|
+
fs.mkdirSync(path.dirname(destination), { recursive: true });
|
|
65
|
+
fs.copyFileSync(source, destination);
|
|
66
|
+
}
|
|
67
|
+
|
|
55
68
|
function copyPlugin(target) {
|
|
56
69
|
removeTarget(target);
|
|
57
70
|
fs.mkdirSync(target, { recursive: true });
|
|
@@ -60,7 +73,7 @@ function copyPlugin(target) {
|
|
|
60
73
|
const source = path.join(ROOT, entry);
|
|
61
74
|
if (!fs.existsSync(source)) continue;
|
|
62
75
|
const destination = path.join(target, entry);
|
|
63
|
-
|
|
76
|
+
copyDirRecursive(source, destination);
|
|
64
77
|
}
|
|
65
78
|
}
|
|
66
79
|
|
package/package.json
CHANGED