garie icon indicating copy to clipboard operation
garie copied to clipboard

[Versioning] Change package.json to use current lighthouse version

Open cmaerz opened this issue 6 years ago • 3 comments

Currently Lighthouse version is hardcoded to ^3.0.3 maybe it's a good idea to switch this to ^3 to always use the newest version within the current major of lighthouse.

cmaerz avatar Oct 17 '18 10:10 cmaerz

Hi @cmaerz the current carrot on ^3.0.3 means it would take the latest minor and patch the change your are suggesting would mean it would still just have the same outcome.

To do what you have suggested I think the following could work and it would get the latest major version: "lighthouse": "*", in the package.json

This is a nice explanation: https://docs.npmjs.com/about-semantic-versioning

mattpaulwilliamson avatar Nov 28 '18 15:11 mattpaulwilliamson

Hm ok, i got this. But why did i get 3.0.3 on my first install then?

cmaerz avatar Nov 28 '18 15:11 cmaerz

I would expect it to use the 3.2.1 release of lighthouse once installed. As this is the last minor V3 version.

mattpaulwilliamson avatar Dec 11 '18 13:12 mattpaulwilliamson