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

Transform "preset" value before passing to "standard-version" Changelog executor #613

Closed
psamusev opened this issue Oct 18, 2022 · 0 comments

Comments

@psamusev
Copy link

"standart-version" library that is using to generate the changelog has value of the "preset" property other than StandartVersionPreset type

For example defaults has it as exeuction of the require.resolve() and as a result it produce path to that module in node_module folder rathen than value of StandartVersionPreset. It leads to the preset-loader problem in changelog generation

As you may notice the result of the preset-loader will be library preset value (that's just a plain string according to StandartVersionPreset) because it won't meet the defaultPreset values of the "standart-version" and we will not go inside the defalut condition block. Due to this we are not able to change the conventional-specs(related issue #434)) of the 'conventionalcommits' preset generator.

Expecte behavior - before using of the standart-version changelog generator we need transform preset either to the default of "standart-version" (and in this case we may have possibility to change the conventional-specs (related issue #434) or consider preset as object with conventional-spec configuration

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

No branches or pull requests

2 participants