Changelog in root directory #661
-
Hi, I have an issue generating the CHANGELOG.md in the root directory when lerna.json: {
"$schema": "node_modules/@lerna-lite/cli/schemas/lerna-schema.json",
"version": "independent",
"npmClient": "pnpm",
"command": {
"publish": {
"conventionalCommits": true,
"message": "chore(release): publish new version %v",
"registry": "https://npm.pkg.github.com"
}
},
"packages": ["packages/*"]
} pnpm-workspace.yaml packages:
# all packages in direct subdirs of packages/
- "packages/*"
# exclude packages that are inside test directories
- "!**/test/**"
I'm fairly new to lerna in general so I'm not sure if its a bug so I opened a discussion instead of an issue. Thank you for your work with lerna-lite! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
I'm not sure why you're using Lerna-Lite also uses pnpm, so you could also take a look at the config that I use in this project. You should probably use npm scripts like I mentioned. |
Beta Was this translation helpful? Give feedback.
That was the issue. I set the version to 0.0.0 in lerna.json and that generate a changelog in the root directory.
On the side note, i noticed that the %v in the command.publish.message doesn't work properly when "version" is set to "independent"
when I used a version number instead, it resolved it.