diff --git a/tools/fix-typescript-typedef.mjs b/tools/fix-typescript-typedef.mjs index fd26ae3..e1bf5ec 100644 --- a/tools/fix-typescript-typedef.mjs +++ b/tools/fix-typescript-typedef.mjs @@ -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);