@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
- fs.cpSync(source, destination, { recursive: true });
76
+ copyDirRecursive(source, destination);
64
77
  }
65
78
  }
66
79
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gangvy/claude-code-measurement-marker-check",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Claude Code skill for P0 renovation measurement drawing missing-marker checks.",
5
5
  "type": "commonjs",
6
6
  "bin": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-code-measurement-marker-check",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Claude Code 独立技能包:装修量尺图缺标记检查。P0 支持上传量尺图后识别疑似未标记位置、待复核区域和补标建议。",
5
5
  "plugin": "measurement-marker-check",
6
6
  "skills": [