Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitcaa4276

Browse files
committed
pretty write json
Signed-off-by: shmck <shawn.j.mckay@gmail.com>
1 parentc8e9721 commitcaa4276

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/build.ts

Lines changed: 1 addition & 1 deletion
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-
awaitwrite(options.output,JSON.stringify(tutorial),"utf8");
127+
awaitwrite(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)

[8]ページ先頭

©2009-2025 Movatter.jp