mirror of
https://fastgit.cc/https://github.com/anomalyco/opencode
synced 2026-04-30 22:00:53 +08:00
fix: clean up 49 unused variables, catch params, and stale imports (#22695)
This commit is contained in:
@@ -4,34 +4,6 @@ import { Script } from "@opencode-ai/script"
|
||||
import { $ } from "bun"
|
||||
import { fileURLToPath } from "url"
|
||||
|
||||
const highlightsTemplate = `
|
||||
<!--
|
||||
Add highlights before publishing. Delete this section if no highlights.
|
||||
|
||||
- For multiple highlights, use multiple <highlight> tags
|
||||
- Highlights with the same source attribute get grouped together
|
||||
-->
|
||||
|
||||
<!--
|
||||
<highlight source="SourceName (TUI/Desktop/Web/Core)">
|
||||
<h2>Feature title goes here</h2>
|
||||
<p short="Short description used for Desktop Recap">
|
||||
Full description of the feature or change
|
||||
</p>
|
||||
|
||||
https://github.com/user-attachments/assets/uuid-for-video (you will want to drag & drop the video or picture)
|
||||
|
||||
<img
|
||||
width="1912"
|
||||
height="1164"
|
||||
alt="image"
|
||||
src="https://github.com/user-attachments/assets/uuid-for-image"
|
||||
/>
|
||||
</highlight>
|
||||
-->
|
||||
|
||||
`
|
||||
|
||||
console.log("=== publishing ===\n")
|
||||
|
||||
const pkgjsons = await Array.fromAsync(
|
||||
|
||||
@@ -193,7 +193,7 @@ console.log("Fetching GitHub releases for anomalyco/opencode...\n")
|
||||
const releases = await fetchReleases()
|
||||
console.log(`\nFetched ${releases.length} releases total\n`)
|
||||
|
||||
const { total: githubTotal, stats } = calculate(releases)
|
||||
const { total: githubTotal } = calculate(releases)
|
||||
|
||||
console.log("Fetching npm all-time downloads for opencode-ai...\n")
|
||||
const npmDownloads = await fetchNpmDownloads("opencode-ai")
|
||||
|
||||
Reference in New Issue
Block a user