Skip to content

Commit caa4276

Browse files
committed
pretty write json
Signed-off-by: shmck <[email protected]>
1 parent c8e9721 commit caa4276

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/build.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ async function build(args: string[]) {
124124
// write tutorial
125125
if (tutorial) {
126126
try {
127-
await write(options.output, JSON.stringify(tutorial), "utf8");
127+
await write(options.output, JSON.stringify(tutorial, null, 2), "utf8");
128128
console.info(`Success! See output at ${options.output}`);
129129
} catch (e) {
130130
console.error("Error writing tutorial json file:");

0 commit comments

Comments
 (0)