Skip to content

Commit

Permalink
feat: load config from changelog field in package.json (#88)
Browse files Browse the repository at this point in the history
  • Loading branch information
dnldsht authored Mar 27, 2023
1 parent 0f44ee9 commit daf1238
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ By default in unauthenticated mode, changelogen will open a browser link to make

## Configuration

Configuration is loaded by [unjs/c12](https://github.com/unjs/c12) from cwd. You can use either `changelog.json`, `changelog.{ts,js,mjs,cjs}`, `.changelogrc` or use the `changelog` field in `package.json`.
Configuration is loaded by [unjs/c12](https://github.com/unjs/c12) from cwd. You can use either `changelog.config.json`, `changelog.config.{ts,js,mjs,cjs}`, `.changelogrc` or use the `changelog` field in `package.json`.

See [./src/config.ts](./src/config.ts) for available options and defaults.

Expand Down
1 change: 1 addition & 0 deletions src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ export async function loadChangelogConfig(
const { config } = await loadConfig<ChangelogConfig>({
cwd,
name: "changelog",
packageJson: true,
defaults,
overrides: {
cwd,
Expand Down

0 comments on commit daf1238

Please sign in to comment.