babel-upgrade icon indicating copy to clipboard operation
babel-upgrade copied to clipboard

Automatically upgrade the version when publishing a new babel version

Open nicolo-ribaudo opened this issue 7 years ago • 6 comments

It might be possible to update https://github.com/babel/babel-upgrade/blob/cff059c308cfb9e21a6aa41d656d743fc82269d4/src/index.js#L20-L22 using a npm publish script on @babel/core?

nicolo-ribaudo avatar Aug 10 '18 07:08 nicolo-ribaudo

I would like to work on this, if possible.

aulisius avatar Aug 10 '18 08:08 aulisius

Let's first wait for @hzoo's opinion since it is him who usually publish Babel.

nicolo-ribaudo avatar Aug 10 '18 08:08 nicolo-ribaudo

I guess it didn't really make sense to do it automatically when it's a breaking change since it wouldn't run when you updated. But now I guess we could maybe? Just not sure it was worth. And now you might want ^? You can query npm instead of non publish too I think

hzoo avatar Aug 10 '18 12:08 hzoo

https://github.com/npm/libnpmsearch

aulisius avatar Aug 30 '18 01:08 aulisius

Thinking about it, is this even an issue now? Now that Babel v7 is released (:fireworks:), just returning ^7.0.0 works, right?

aulisius avatar Aug 30 '18 05:08 aulisius

Yup, it should :+1:

nicolo-ribaudo avatar Aug 30 '18 06:08 nicolo-ribaudo