Skip to content

Commit b9a0f55

Browse files
committed
target package.json and CHANGELOG.md in cwd
1 parent b557b70 commit b9a0f55

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

cli.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,9 @@ const cli = createCLI({
4646
if (process.env.AMENDING) {
4747
process.exit(0)
4848
}
49-
const CHANGELOG_PATH = 'CHANGELOG.md'
50-
const PACKAGE_PATH = 'package.json'
49+
// Use paths relative to current working directory (the package directory)
50+
const CHANGELOG_PATH = join(process.cwd(), 'CHANGELOG.md')
51+
const PACKAGE_PATH = join(process.cwd(), 'package.json')
5152

5253
const packageJsonContent = Bun.file(PACKAGE_PATH)
5354
const packageJson = await packageJsonContent.json()

0 commit comments

Comments
 (0)