Skip to content

fix(opencode): remove spurious scripts and randomField from package.json#22160

Merged
thdxr merged 2 commits intoanomalyco:devfrom
shafdev:fix/remove-spurious-package-json-fields
Apr 12, 2026
Merged

fix(opencode): remove spurious scripts and randomField from package.json#22160
thdxr merged 2 commits intoanomalyco:devfrom
shafdev:fix/remove-spurious-package-json-fields

Conversation

@shafdev
Copy link
Copy Markdown
Contributor

@shafdev shafdev commented Apr 12, 2026

Issue for this PR

Closes #22159

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

packages/opencode/package.json had two categories of junk entries that appear to have been accidentally committed:

  1. A randomField top-level key ("this-is-a-random-value-12345") — not a valid package.json field, has no effect but pollutes the manifest.

  2. Six fake scripts: random, clean, lint, format, docs, deploy. These are echo-only stubs with incorrect implementations — for example, lint just runs bun test --coverage (not a linter), and format passes --prettier as a flag to bun run which is invalid. The real formatting and lint tooling (biome, turbo) lives at the monorepo level and these scripts are not wired up to anything.

The fix removes all seven entries. No logic was changed.

How did you verify your code works?

  • bun run --cwd packages/opencode typecheck — passed
  • bun run --cwd packages/opencode test — 1901 tests passed (1 pre-existing flaky failure unrelated to this change)

Screenshots / recordings

N/A (non-UI change)

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

@thdxr thdxr merged commit fa2c69f into anomalyco:dev Apr 12, 2026
6 of 8 checks passed
alexyaroshuk pushed a commit to alexyaroshuk/opencode that referenced this pull request Apr 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix: remove spurious scripts and randomField from packages/opencode/package.json

2 participants