Skip to content

Commit 5a0f85a

Browse files
sarahdayanclaude
andcommitted
fix: resolve eslint errors in updateChangelog
- Add eslint-disable for import/no-unresolved (ESM exports field) - Remove unnecessary async from prepareParams Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 233b766 commit 5a0f85a

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

packages/shipjs/src/step/prepare/updateChangelog.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import fs from 'fs';
22
import path from 'path';
33

4+
// eslint-disable-next-line import/no-unresolved -- ESM-only package with exports field
45
import { ConventionalChangelog } from 'conventional-changelog';
56
import tempfile from 'tempfile';
67

@@ -27,7 +28,7 @@ export default ({
2728
}
2829

2930
const { conventionalChangelogArgs } = config;
30-
const { args, gitCommitsParams } = await prepareParams({
31+
const { args, gitCommitsParams } = prepareParams({
3132
dir,
3233
conventionalChangelogArgs,
3334
releaseCount,
@@ -76,7 +77,7 @@ const argSpec = {
7677
'-t': '--tag-prefix',
7778
};
7879

79-
export async function prepareParams({
80+
export function prepareParams({
8081
dir,
8182
conventionalChangelogArgs,
8283
releaseCount,
@@ -125,9 +126,7 @@ async function runConventionalChangelog({
125126
fs.writeFileSync(args.outfile, '');
126127
}
127128

128-
const generator = new ConventionalChangelog(dir).readPackage(
129-
args.pkg || dir
130-
);
129+
const generator = new ConventionalChangelog(dir).readPackage(args.pkg || dir);
131130

132131
if (args.preset) {
133132
generator.loadPreset(args.preset);

0 commit comments

Comments
 (0)