Skip to content

Commit

Permalink
fix: add .js ext. for mjs imports in .d.ts files (#215)
Browse files Browse the repository at this point in the history
Fixes: #214
  • Loading branch information
edosrecki authored Sep 22, 2023
1 parent fe6c356 commit a998db6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/fixup.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ async function fixupImportFileExtensions() {
const path = resolve(mjsDistFolder, entry.name);
if (entry.isDirectory()) {
recursiveReadDir(path);
} else if (path.endsWith('.js')) {
} else if (path.endsWith('.js') || path.endsWith('.d.ts')) {
mjsFilePaths.push(path);
}
}
Expand Down

0 comments on commit a998db6

Please sign in to comment.