Skip to content

Commit 56bbc8a

Browse files
NicolappsConvex, Inc.
authored andcommitted
codemod: fix progress bar behavior (#43479)
GitOrigin-RevId: 86c600288b161cfb26b0c6af5513e27a294d3add
1 parent 994efcf commit 56bbc8a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

npm-packages/@convex-dev/codemod/src/codemods/explicit-ids.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ export async function explicitIds(
2121
ctx,
2222
"[:bar] :percent (:current/:total) Processing :name…",
2323
{
24+
width: 30,
2425
total: project.getSourceFiles().length,
2526
},
2627
);
2728

2829
for (const sourceFile of project.getSourceFiles()) {
2930
progress.tick({
30-
width: 30,
3131
name: path.relative(root, sourceFile.getFilePath()),
3232
});
3333

@@ -53,6 +53,8 @@ export async function explicitIds(
5353
deleteResolveTypesTempFile(project, root);
5454
await allowInterrupt();
5555
}
56+
57+
progress.terminate();
5658
}
5759

5860
function findDbCalls(

0 commit comments

Comments
 (0)