@andyqiu/codeforge 0.5.2 → 0.5.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/bin/codeforge.mjs CHANGED
@@ -316,7 +316,8 @@ function cmdUpgrade(args) {
316
316
  log(`步骤 2/2:codeforge install --global`)
317
317
 
318
318
  if (!dryRun) {
319
- const code = installOpencode({ scope: "global", dryRun: false, extraArgs: [] })
319
+ const skipBuildFlag = process.platform === "win32" ? "-SkipBuild" : "--skip-build"
320
+ const code = installOpencode({ scope: "global", dryRun: false, extraArgs: [skipBuildFlag] })
320
321
  if (code !== 0) {
321
322
  err(`install --global 失败 (exit=${code})`)
322
323
  return 1
package/dist/index.js CHANGED
@@ -20906,7 +20906,7 @@ import * as zlib from "node:zlib";
20906
20906
  // lib/version-injected.ts
20907
20907
  function getInjectedVersion() {
20908
20908
  try {
20909
- const v = "0.5.2";
20909
+ const v = "0.5.3";
20910
20910
  if (typeof v === "string" && /^\d+\.\d+\.\d+/.test(v)) {
20911
20911
  return v;
20912
20912
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@andyqiu/codeforge",
3
- "version": "0.5.2",
3
+ "version": "0.5.3",
4
4
  "description": "CodeForge — opencode 的零侵入扩展包",
5
5
  "type": "module",
6
6
  "private": false,