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

How can I configure conventionalcommits properties without having the preset installed into my own projects package.json? #210

Closed
jeacott1 opened this issue Apr 6, 2023 · 6 comments
Labels
wontfix This will not be worked on

Comments

@jeacott1
Copy link

jeacott1 commented Apr 6, 2023

Hi,
as I understand it, if I want to customise IssuePrefixes etc I need to create a new file and reference it with config-file-path:
eg:

'use strict'
const config = require('conventional-changelog-conventionalcommits');

module.exports = config({
    "issuePrefixes": [""XXXX-"],
    "issueUrlFormat": "https://myproject.atlassian.net/browse/{{prefix}}{{id}}"
})

this disables the 'preset:' option and the conventional-changelog-conventionalcommits is no longer pulled automatically.

if I run npm install it eg:

run: npm install conventional-changelog-conventionalcommits

This fixes the missing dependency issue, but it also includes and commits the dependency in MY project. this is totally undesirable.

How can I set the issuePrefixes and issueUrlFormat without having this injected into my own package.json?

"conventional-changelog-conventionalcommits": "^5.0.0" 

when I just use the 'preset: conventionalcommits' option this problem doesnt occur.

thanks

@stale
Copy link

stale bot commented Jun 10, 2023

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix This will not be worked on label Jun 10, 2023
@TriPSs
Copy link
Owner

TriPSs commented Jul 26, 2023

Why not just add the dependency to your project?

@stale stale bot removed the wontfix This will not be worked on label Jul 26, 2023
@stale
Copy link

stale bot commented Oct 15, 2023

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix This will not be worked on label Oct 15, 2023
@TriPSs TriPSs closed this as not planned Won't fix, can't repro, duplicate, stale Dec 11, 2023
@gamunu
Copy link

gamunu commented Mar 19, 2024

Why not just add the dependency to your project?

There are other languages, for example, GoLang.

@TriPSs
Copy link
Owner

TriPSs commented Mar 19, 2024

This is actually solved with #247, please update to the latest version. We now default include conventionalcommits preset.

@gamunu
Copy link

gamunu commented Mar 19, 2024

awesome thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

3 participants