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

document lerna as monorepo option #225

Open
blackxored opened this issue Nov 27, 2017 · 12 comments
Open

document lerna as monorepo option #225

blackxored opened this issue Nov 27, 2017 · 12 comments

Comments

@blackxored
Copy link

I've read a lot of threads without a conclusive answer. Is there monorepo support in standard-version or planned?

  • Multiple changelog generator including a root changelog.
  • Multiple package version bumps at once.
  • etc
@stevemao
Copy link
Member

lerna is already using conventional-changelog. I guess we should document it.

@bcoe bcoe changed the title Monorepo support? document lerna as monorepo option Nov 29, 2017
@bcoe
Copy link
Member

bcoe commented Nov 29, 2017

@stevemao @blackxored; following up from @stevemao's comment. I helped add similar functionality to lerna, to the functionality in standard-version.

I think we'd be smart to reference lerna in our README for standard-version.

@blackxored
Copy link
Author

Yes, I found lerna's --conventional-commits eventually. However, I think this package has a couple of more options.
Lerna won't still give me a combined changelog at the root, unfortunately.

@pantoninho
Copy link

What's the state of this issue?

I don't understand if I should use lerna's option to create a conventional-changelog or use this package instead.

@inakiarroyo
Copy link

inakiarroyo commented Sep 6, 2019

@pantoninho I am using the one provided by lerna. At the moment with conventional-changelog/standard-version you can't have independent versions and generated CHANGELOG.md with the correct meta-info on them, because it bumps all the packages with the same version without respect the independent option.

For the first creation of the each CHANGELOG.md I use this independent changelog generation tip

And after it, having in your lerna.json file:

"command": {
    "version": {
       "message": "chore(release): publish",
       "conventionalCommits": true,
       "yes": true
    }
  }

you can simple call npx lerna version which will update your CHANGELOG.md files, will bump your package versions respecting them with the conventional commit preset chosen and will respect the independent versioning for each package.

@coder2000
Copy link

What if we are not using lerna? Is there still a way to use this with a monorepo?

@codeandcats
Copy link

codeandcats commented Oct 13, 2019

Yes, I'm curious how I can use standard-version in a mono-repo (configured using yarn workspaces, not lerna) consisting of multiple npm packages.

Like is there a way to tell standard-version to only look at git commits that affected files under a certain path when building the change log and bumping the package version?

@snebjorn
Copy link

Did anyone make some progress on this?

@micaelmbagira
Copy link
Contributor

micaelmbagira commented Apr 22, 2020

@snebjorn @codeandcats @bcoe I have a MR opened #503 which enables that

@devjayantmalik
Copy link

Yes, I'm curious how I can use standard-version in a mono-repo (configured using yarn workspaces, not lerna) consisting of multiple npm packages.

Like is there a way to tell standard-version to only look at git commits that affected files under a certain path when building the change log and bumping the package version?

Is it possible now in 2021 to maintain monorepo with independent versions without lerna? Or do you have some plans for it?

If above comment is possible, then what would be the steps to implement it, a example would be appreciated.

@phun-ky
Copy link

phun-ky commented Feb 18, 2022

@micaelmbagira nice work on the PR, but how can we put together this with standard-version so we can drop lerna completely?

@ipleten
Copy link

ipleten commented Mar 28, 2023

How can I add docs, perf, test and other features to conventional changelog? They are currently just simply being ignored.

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

No branches or pull requests