Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there support for independent versioning? #40

Open
DeclanBoller opened this issue Oct 16, 2020 · 2 comments
Open

Is there support for independent versioning? #40

DeclanBoller opened this issue Oct 16, 2020 · 2 comments

Comments

@DeclanBoller
Copy link

I'm unsure if I should post this here or in the Release It repo, however I opted to post here as my question relates to monorepos.

Our company has a large monorepo with many packages that are on different versions, we're currently using Lerna which allows us to independently version those packages, however we are looking to move away from it and are exploring our options. Release It + your package seem like really a good fit, but I've noticed that release-it seems to run off a fixed versioning strategy.

I had a quick look in your package and release-it for any flags / code that might indicate the possibility of independent versioning, however came up empty. Is it possible at the moment or is there any scope for it to be added?

@rwjblue
Copy link
Collaborator

rwjblue commented Oct 16, 2020

I think this is generally the same as #36. Like I mentioned over there, I'm definitely open to adding this support (would love it actually).

I think the main tasks here are:

  1. figure out how we decide what to publish
  2. add an option to opt in to this strategy
  3. implement (honestly I think this is easy, once we answer the first question)
  4. profit 💸 😸

@xg-wang
Copy link

xg-wang commented Jul 30, 2021

@rwjblue

figure out how we decide what to publish

For my use case I want exactly lerna's Independent mode:

Independent mode Lerna projects allows maintainers to increment package versions independently of each other. Each time you publish, you will get a prompt for each package that has changed to specify if it's a patch, minor, major or custom change.

Looks like #36 describes lerna's Fixed/Locked mode (default)

Or we can do a hybrid approach, adding a independentWorkspaces?: string[]; which will receive prompts to decide patch/minor/major/custom change if content modified. Another change can add publishUnchanged?: boolean to control publishing unchanged packages, turn it to false by default in future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants