Skip to content

Commit ce5cea2

Browse files
authored
Merge pull request #104 from line/refactor/edit-sync
refactor: make edit synchronous
2 parents 2185904 + ff97154 commit ce5cea2

File tree

3 files changed

+193
-195
lines changed

3 files changed

+193
-195
lines changed

Diff for: lib/tsr.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ export type Config = {
3636
includeDts?: boolean;
3737
};
3838

39+
// is async for backwards compatibility
3940
export const tsr = async ({
4041
entrypoints,
4142
mode,
@@ -102,7 +103,7 @@ export const tsr = async ({
102103
),
103104
);
104105

105-
await edit({
106+
edit({
106107
fileService,
107108
entrypoints: entrypointFiles,
108109
deleteUnusedFile: true,

0 commit comments

Comments
 (0)