Skip to content

Commit

Permalink
Fix TypeScript definition for ESM (#483)
Browse files Browse the repository at this point in the history
  • Loading branch information
eXon committed Apr 1, 2024
1 parent ca78202 commit 3f6159e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/fix-typescript-typedef.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ const promises = files

const content = (await fs.readFile(newFullFile)).toString();
const newContent = content.replaceAll(
/ from \'([^']+)\'/g,
` from '$1.d.mts'`,
/ from \'\.([^']+)\'/g,
` from '.$1.d.mts'`,
);

await fs.writeFile(newFullFile, newContent);
Expand Down

0 comments on commit 3f6159e

Please sign in to comment.