Skip to content

Commit 635b2e6

Browse files
committed
Fix readLines import in Deno TS script
1 parent b095e31 commit 635b2e6

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/scripts/codeblock-to-json.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,15 @@
1010
// to generate JS because we want to bundle other files into it. If we didn't
1111
// bundle the files, we would need to do some weird stuff with paths for the
1212
// import to work at run time, because the output path structure is different.
13+
import { readLines } from "https://deno.land/std/io/mod.ts";
14+
1315
import { parseCodeBlock } from "../parse-codeblock";
14-
import { readLines } from 'https://deno.land/std/io/buffer.ts'
1516

1617
const { args } = Deno;
1718

18-
const lines: string[] = []
19+
const lines: string[] = [];
1920
for await (const line of readLines(Deno.stdin)) {
20-
lines.push(line)
21+
lines.push(line);
2122
}
2223

2324
const content = parseCodeBlock(lines);

0 commit comments

Comments
 (0)