refactor(cli): split commands/update.ts into update/{index,releases}.ts

releases.ts carries the GitHub/Gitea release infrastructure (types,
listing, mirrored download, archive extraction, semver compare);
index.ts keeps handleUpdateCommand and re-exports the previously
public members so update.test.ts stays source-compatible.
Verbatim code moves, no behavior change: tsc clean, 316 tests pass.
This commit is contained in:
gitea committed 2026-10-04 14:12:03 +08:00
1 parent 6f1f2623a3
commit c8450b9908
4 files changed
+510 -471

No files matched your search

+1 -1
View File
@@ -6,7 +6,7 @@ import {
normalizeRepo,
isValidRepo,
type GitHubAsset,
} from "./update.js";
} from "./update/index.js";
describe("update version comparator", () => {
test("correctly identifies newer semantic versions", () => {