(state: State)
| 613 | } |
| 614 | |
| 615 | function emitEdit(state: State): void { |
| 616 | const file = path.join(process.cwd(), "src", "demo-format.ts") |
| 617 | const ref = make(state, "edit", { |
| 618 | filePath: file, |
| 619 | }) |
| 620 | doneTool(state, ref, { |
| 621 | title: "edit", |
| 622 | output: "", |
| 623 | metadata: { |
| 624 | diff: "@@ -1 +1 @@\n-export const demo = 1\n+export const demo = 42\n", |
| 625 | }, |
| 626 | }) |
| 627 | } |
| 628 | |
| 629 | function emitPatch(state: State): void { |
| 630 | const file = path.join(process.cwd(), "src", "demo-format.ts") |