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

fix(config): fix package-json configuration #41

Merged
merged 1 commit into from
Jan 15, 2024

Conversation

romanhrynevych
Copy link
Contributor

Noticed that if I want to config this package inside my root package.json nothing worked, so look through official unjs/c12 docs and noticed that if we want to import from package.json need to set option to true, link to anchor:

image

Don't know how to test it, but think this will fixed it ❤️

const config = await loadConfig<ChangelogOptions>({
    name: 'changelogithub',
    defaults: defaultConfig,
    overrides: options,
    // added this 👇  
    packageJson: true,
  }).then(r => r.config || defaultConfig)

@antfu antfu merged commit 07faf26 into antfu:main Jan 15, 2024
@romanhrynevych romanhrynevych deleted the fix/package-json-config branch January 15, 2024 13:16
@romanhrynevych romanhrynevych restored the fix/package-json-config branch January 15, 2024 20:10
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 this pull request may close these issues.

None yet

2 participants