Skip to content

Commit

Permalink
Merge pull request #104 from line/refactor/edit-sync
Browse files Browse the repository at this point in the history
refactor: make edit synchronous
  • Loading branch information
kazushisan authored Dec 16, 2024
2 parents 2185904 + ff97154 commit ce5cea2
Show file tree
Hide file tree
Showing 3 changed files with 193 additions and 195 deletions.
3 changes: 2 additions & 1 deletion lib/tsr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ export type Config = {
includeDts?: boolean;
};

// is async for backwards compatibility
export const tsr = async ({
entrypoints,
mode,
Expand Down Expand Up @@ -102,7 +103,7 @@ export const tsr = async ({
),
);

await edit({
edit({
fileService,
entrypoints: entrypointFiles,
deleteUnusedFile: true,
Expand Down
Loading

0 comments on commit ce5cea2

Please sign in to comment.