Skip to content

Commit

Permalink
fix: pass package.json path through to conventional-changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
sj-e2digital authored and edbzn committed Aug 2, 2024
1 parent 60f00cd commit 46a2a8b
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import * as path from 'node:path';
import * as conventionalChangelog from 'conventional-changelog';
import { WriteChangelogConfig } from '../schema';

Expand All @@ -12,7 +13,7 @@ export function createConventionalCommitStream(
...(typeof config.preset === 'object' ? { config: config.preset } : {}),
tagPrefix: config.tagPrefix,
pkg: {
path: config.projectRoot,
path: path.join(config.projectRoot, 'package.json'),
},
},
{ version: newVersion },
Expand Down

0 comments on commit 46a2a8b

Please sign in to comment.