@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 +2 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
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
|
|
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.
|
|
20909
|
+
const v = "0.5.3";
|
|
20910
20910
|
if (typeof v === "string" && /^\d+\.\d+\.\d+/.test(v)) {
|
|
20911
20911
|
return v;
|
|
20912
20912
|
}
|