From eda6fe3aa9a815e45359d15a13dc9b14e9a4dbf8 Mon Sep 17 00:00:00 2001 From: dnldsht Date: Sun, 26 Mar 2023 12:56:41 +0200 Subject: [PATCH 1/2] fix: load config from package.json --- src/config.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/config.ts b/src/config.ts index eeac5da..cf747b3 100644 --- a/src/config.ts +++ b/src/config.ts @@ -55,6 +55,7 @@ export async function loadChangelogConfig( const { config } = await loadConfig({ cwd, name: "changelog", + packageJson: true, defaults, overrides: { cwd, From 17a0fb93a4a8846f339b822fdc951d7eac129f4f Mon Sep 17 00:00:00 2001 From: dnldsht Date: Sun, 26 Mar 2023 12:57:28 +0200 Subject: [PATCH 2/2] docs: fixed config paths --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index f5f4c68..12c2749 100644 --- a/README.md +++ b/README.md @@ -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.