Convert to ESM

This commit is contained in:
schroda
2024-12-24 03:32:55 +01:00
parent 89cab26f73
commit 9d74380e94
10 changed files with 20 additions and 27 deletions

View File

@@ -284,7 +284,7 @@ const getContributorsForRange = async (url: string, authToken: string): Promise<
const getLanguageLinesFromChangelog = (): Promise<string[]> => {
const fileReadPromise = new ControlledPromise<string[]>();
const changelogFile = path.resolve(__dirname, '../../CHANGELOG.md');
const changelogFile = path.resolve(import.meta.dirname, '../../CHANGELOG.md');
const fileStream = fs.createReadStream(changelogFile);
const fileLineReader = readline.createInterface({
input: fileStream,