vercel / micro-dev

The development environment for `micro`
MIT License
706 stars 77 forks source link

Automatic publishing with `lerna` #133

Closed thinkverse closed 1 year ago

thinkverse commented 1 year ago

To move forward with #127 and #131, I thought it'd be a good idea to make the micro-dev repository mimic micro. For that reason, I decided to copy https://github.com/vercel/micro/pull/400 and add Lerna to support auto-publishing.

leerob commented 1 year ago

Are there advantages of using lerna here as a prerequisite for those other issues?

I haven't been using lerna in micro - just releasing manually, was actually thinking about removing it as it's a single package. Thoughts?

thinkverse commented 1 year ago

Are there advantages of using lerna here as a prerequisite for those other issues?

As I understood it, it helps with versioning and publishing, by making it easier to release new versions with a single command.

lerna version increments a package version, commits, and tags it.

lerna publish does what version does, but also published that version.

I haven't been using lerna in micro

I thought it was used there since @timneutkens added it, hence the reason for this PR. 🤷‍♂️ If it's not needed then feel free to close this. 🙂

leerob commented 1 year ago

Yeah I've just been using release followed by npm publish. Lerna is helpful when there's multiple packages!

Appreciate the effort here regardless 🙏