chore: replace fs-extra with node:fs/promises (#2174)

Co-authored-by: Aaron <aaronklinker1@gmail.com>
This commit is contained in:
Florian Metz
2026-03-06 16:29:49 +01:00
committed by GitHub
parent 80d384361b
commit 5fe4681620
39 changed files with 177 additions and 192 deletions
+2 -3
View File
@@ -4,7 +4,7 @@ import {
loadChangelogConfig,
parseChangelogMarkdown,
} from 'changelogen';
import fs from 'fs-extra';
import { readFile } from 'node:fs/promises';
import { grabPackageDetails } from './git';
import consola from 'consola';
@@ -19,8 +19,7 @@ const { pkgName, prevTag, currentVersion, changelogPath } =
await grabPackageDetails(pkg);
consola.info('Creating release for:', { pkg, pkgName, prevTag });
const { releases } = await fs
.readFile(changelogPath, 'utf8')
const { releases } = await readFile(changelogPath, 'utf8')
.then(parseChangelogMarkdown)
.catch(() => ({ releases: [] }));