@andyqiu/codeforge 0.6.2 → 0.6.3

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/dist/index.js CHANGED
@@ -19759,7 +19759,7 @@ import * as zlib from "node:zlib";
19759
19759
  // lib/version-injected.ts
19760
19760
  function getInjectedVersion() {
19761
19761
  try {
19762
- const v = "0.6.2";
19762
+ const v = "0.6.3";
19763
19763
  if (typeof v === "string" && /^\d+\.\d+\.\d+/.test(v)) {
19764
19764
  return v;
19765
19765
  }
package/install.mjs CHANGED
@@ -493,6 +493,8 @@ function installCopyDirs({ targetRoot }) {
493
493
  vlog(`源目录不存在,跳过: ${srcPath}`)
494
494
  continue
495
495
  }
496
+ // 先删再建,防止旧版遗留的文件/符号链接阻塞 cpSync
497
+ if (fs.existsSync(dstPath) || isSymlink(dstPath)) rmrf(dstPath)
496
498
  ensureDir(dstPath)
497
499
  run(`cp -R ${srcPath}/. ${dstPath}/`, () => fs.cpSync(srcPath, dstPath, { recursive: true }))
498
500
  vok(`${srcName}/ → ${dstPath} (整目录拷贝)`)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@andyqiu/codeforge",
3
- "version": "0.6.2",
3
+ "version": "0.6.3",
4
4
  "description": "CodeForge — opencode 的零侵入扩展包",
5
5
  "type": "module",
6
6
  "private": false,