Skip to content

Bundle the rpcspec scripts into one command for spec edits #3208

In review

Description

@ElliotFriend

What

Add one script that runs the whole OpenRPC update after an edit to openrpc/src/stellar-rpc/, the way pnpm check bundles the content checks. For example:

"rpcspec": "pnpm rpcspec:build && pnpm rpcspec:validate && pnpm rpcspec:docs"

rpcspec:validate already runs the build, so the bundle could skip the separate rpcspec:build step.

Also worth considering: pnpm check runs rpcspec:docs --check but not rpcspec:check, so a stale *.openrpc.json specfile only shows up in CI.

Why

A spec edit currently takes three commands in the right order (rpcspec:build, rpcspec:validate, rpcspec:docs). Skipping rpcspec:docs is easy to do, and it leaves the generated method pages out of date, which pnpm check and CI then reject. One command makes the README's steps a single line.

Activity

  1. added
    bot:take
    on Nov 25, 2026
  2. stellar-doxie commented on Nov 25, 2026

    @stellar-doxie
    Contributor

    🤖 Automated message from Doxie.

    Working this because @ElliotFriend added bot:take.

    I am checking the rpcspec scripts and the README steps now. A PR or a question follows.

  3. stellar-doxie commented on Nov 25, 2026

    @stellar-doxie
    Contributor

    🤖 Automated message from Doxie.

    Working this because @ElliotFriend added bot:take.

    Opened #3210:

    • pnpm rpcspec runs rpcspec:validate (which builds) and then rpcspec:docs.
    • pnpm check now runs rpcspec:check, so a stale specfile fails locally too.
    • rpcspec:check uses a new build.mjs --check mode. It builds in memory and writes nothing, so freshly rebuilt but unstaged specfiles do not fail it.

    The follow-up for the .claude skill that lists the old steps is #3209.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bot:take

    Type

    No type

    Projects

    • Status
      In Review

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions