Skip to content

Commit e533514

Browse files
committed
Types publishing: always this.traverse(path) in visitors
1 parent ff55840 commit e533514

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

types/publish.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,7 @@ export function rewriteModule(code, moduleName) {
552552
if (!hasParentModuleDeclarationBlock(path)) {
553553
path.node.declare = false;
554554
}
555-
this.traverse(false);
555+
this.traverse(path);
556556
},
557557

558558
// Remove `declare` from `declare enum` in the top-level module.

0 commit comments

Comments
 (0)