Skip to content

babel-standalone version number runs behind the actual version number #6174

Closed

Description

@Daniel15

The version number is inserted into babel.js (and babel.min.js) as part of the build. If the version is bumped after building (like what happens when publishing with Lerna), it will contain the old version number. The new alpha.20 release is actually alpha.20, but it returns alpha.19 as its version (so Babel.version returns alpha.19, and the REPL shows alpha.190 as the version number).

I solved that in the standalone babel-standalone repo by bumping the version number before building, but it might be trickier in this case. Suggestions appreciated.

Activity

  1. jridgewell commented on Aug 30, 2017

    @jridgewell
    Member

    Can't this be part of the prepublish script?

  2. hzoo commented on Aug 30, 2017

    @hzoo
    Member

    Yeah other than the fact you don't know the version that it should be right? it should just be the version chosen when choosing in lerna

  3. Daniel15 commented on Aug 30, 2017

    @Daniel15
    MemberAuthor

    Can't this be part of the prepublish script?

    It likely could be, but how would you set the version? I guess we could sed it in the built file or something. Unless you mean re-build babel-standalone as part of the pre-publish script?

  4. existentialism commented on Dec 17, 2017

    @existentialism
    Member

    From #7016, babel-preset-env-standalone also exhibits this

  5. added
    outdated
    on May 11, 2019
  6. locked as resolved and limited conversation to collaborators on May 11, 2019
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

    outdatedpkg: standalone

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions