Skip to content

Commit

Permalink
generateImport: include semicolons
Browse files Browse the repository at this point in the history
  • Loading branch information
EthanThatOneKid committed May 10, 2024
1 parent e80f98d commit 8356ea7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion codegen/codegen_lab.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Generated lab file. DO NOT MODIFY.
import { Lab } from "labs/labs.ts";
import { generateLab } from "labs/codegen/generate.ts"
import { generateLab } from "labs/codegen/generate.ts";

export const codegenLab = new Lab()
.procedure("codegen.lab", generateLab);
2 changes: 1 addition & 1 deletion codegen/generate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export function generateImports(
}

export function generateImport(names: string[], importSource: string): string {
return `import { ${names.join(", ")} } from "${importSource}"`;
return `import { ${names.join(", ")} } from "${importSource}";`;
}

export function generateInstructions(descriptor: LabDescriptor): string[] {
Expand Down
4 changes: 2 additions & 2 deletions example/my_lab.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Generated lab file. DO NOT MODIFY.
import { Lab } from "labs/labs.ts";
import { linksLab } from "labs/links.ts"
import { notesLab } from "labs/notes.ts"
import { linksLab } from "labs/links.ts";
import { notesLab } from "labs/notes.ts";

export const myLab = new Lab()
.extend(notesLab)
Expand Down

0 comments on commit 8356ea7

Please sign in to comment.