Skip to content

Published dist reports the previous version #2731

Closed

Description

@mathiasrw

Most published builds report the previous version: alasql.version in [email protected] from npm returns 4.20.0, and the same holds for most releases measured back to 0.x. yarn release runs yarn version, whose preversion script (yarn && yarn test) builds dist/ while package.json still has the old version. Then the version is bumped, and postversion publishes the dist/ that was built before the bump. A prepublishOnly script that runs build.sh rebuilds dist/ with the new version right before npm publish.

Activity

  1. added a commit that references this issue on Oct 20, 2026
    5dfa1af
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions