mapbox-gl-js icon indicating copy to clipboard operation
mapbox-gl-js copied to clipboard

NPM registry yields prior string version of latest mapbox-gl dist

Open andest01 opened this issue 10 years ago • 3 comments

mapbox-gl-js version: 0.26.0 (??? see below ???)

Latest build under https://registry.npmjs.org/mapbox-gl/-/mapbox-gl-0.26.0.tgz at dist/mapbox-gl.js reports the incorrect version.

Expected Behavior

exports string version: 0.26.0

Actual Behavior

exports string version: 0.25.1

screen shot 2016-10-27 at 10 30 05 am

andest01 avatar Oct 27 '16 15:10 andest01

I downloaded https://registry.npmjs.org/mapbox-gl/-/mapbox-gl-0.25.1.tgz and it reported build version 0.25.0.

I had 0.20.0 installed recently and it would report 0.19.1.

michaeljonsampson avatar Oct 27 '16 15:10 michaeljonsampson

That probably happens when a person who does the release does not regenerate the bundle after running npm version, doing npm publish with an outdated version field. I think we can fix this by adding a prepublish script. cc @jfirebaugh

A better long-term fix would be #2250.

mourner avatar Oct 27 '16 15:10 mourner

Yeah, we need to automate this so there's no human involved.

jfirebaugh avatar Oct 27 '16 15:10 jfirebaugh