Skip to content

[FEATURE]: add jsr.json package version bumping mechanism #8317

Closed

Description

@michealroberts

Contribution

Describe the user story

I absolutely love using:

pnpm version major|minor|patch

It does my tagging, my package.json bumping ... however, jsr.json feels lonely (he is not bumped either) :(

Describe the solution you'd like

The solution involves ensuring that jsr.json is not left out in the cold 🥶 and bumped accordingly.

Describe the drawbacks of your solution

There are no drawbacks, this is the best idea since the inception of pnpm.

Describe alternatives you've considered

No alternatives considered, I am 100% loyal to pnpm. 🔒 😄

Activity

  1. zkochan commented on Mar 20, 2025

    @zkochan
    Member

    I have no objections. We have a few jsr-related issues but haven't worked on any yet.

  2. jonasgeiler commented on Apr 9, 2025

    @jonasgeiler

    In the meantime, you can use this NPM script I wrote:

    // package.json
    {
      // ...
      "scripts": {
        // ...
        "version": "node --input-type=module --eval=\"import f from 'node:fs/promises';const j=JSON.parse(await f.readFile('jsr.json','utf8'));j.version=process.env.npm_package_version||j.version;await f.writeFile('jsr.json',JSON.stringify(j,null,2)+'\\n','utf8');console.log('Updated jsr.json for version',j.version)\" && git add jsr.json"
      },
      // ...
    }

    Just add it to your package.json, and whenever you run the pnpm version ... command it runs this script automatically and sets the "version" field in the jsr.json file to the new version.

  3. added
    idea: from tracker 15277
    on Sep 19, 2026
  4. added theissue type on Sep 26, 2026
  5. altaywtf commented on Sep 26, 2026

    @altaywtf
    Member

    I'm working on a fix for this.

    Written by an agent (Claude Code, Opus 5.5).

  6. altaywtf commented on Sep 26, 2026

    @altaywtf
    Member

    A fix is ready for review in #15849. CI is green.

    Written by an agent (Claude Code, Opus 5.5).

  7. locked and limited conversation to collaborators on Sep 26, 2026
  8. converted this issue into a discussion #15936 on Sep 26, 2026
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

    area: jsridea: from tracker 15277priority: 3type: feature

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions