@andyqiu/codeforge 0.8.12 → 0.8.13
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 -4
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/bin/codeforge.mjs
CHANGED
|
@@ -255,7 +255,7 @@ async function cmdUpgrade(args) {
|
|
|
255
255
|
const installTarget = latestVersion
|
|
256
256
|
? `@andyqiu/codeforge@${latestVersion}`
|
|
257
257
|
: "@andyqiu/codeforge@latest"
|
|
258
|
-
const npmArgs = ["install", "-g", installTarget]
|
|
258
|
+
const npmArgs = ["install", "-g", installTarget, "--no-audit", "--no-fund"]
|
|
259
259
|
|
|
260
260
|
if (dryRun) {
|
|
261
261
|
const displayNew = latestVersion ?? "未知(版本查询失败)"
|
|
@@ -264,10 +264,8 @@ async function cmdUpgrade(args) {
|
|
|
264
264
|
return 0
|
|
265
265
|
}
|
|
266
266
|
|
|
267
|
-
const r = spawnSync(npmCmd, npmArgs, { stdio: "
|
|
267
|
+
const r = spawnSync(npmCmd, npmArgs, { stdio: "inherit" })
|
|
268
268
|
if (r.status !== 0) {
|
|
269
|
-
if (r.stderr) process.stderr.write(r.stderr)
|
|
270
|
-
if (r.stdout) process.stderr.write(r.stdout)
|
|
271
269
|
err(`npm install 失败 (exit=${r.status ?? 1})`)
|
|
272
270
|
err(`提示:可手动跑 npm install -g ${installTarget}`)
|
|
273
271
|
return 1
|
package/dist/index.js
CHANGED
|
@@ -32690,7 +32690,7 @@ import * as https from "node:https";
|
|
|
32690
32690
|
// lib/version-injected.ts
|
|
32691
32691
|
function getInjectedVersion() {
|
|
32692
32692
|
try {
|
|
32693
|
-
const v = "0.8.
|
|
32693
|
+
const v = "0.8.13";
|
|
32694
32694
|
if (typeof v === "string" && /^\d+\.\d+\.\d+/.test(v)) {
|
|
32695
32695
|
return v;
|
|
32696
32696
|
}
|