Skip to content

Commit

Permalink
fix: update schema generation script, add missing newlines
Browse files Browse the repository at this point in the history
  • Loading branch information
jhockett committed Oct 15, 2021
1 parent b24e903 commit d757ac6
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -124,4 +124,4 @@
}
},
"$schema": "http://json-schema.org/draft-07/schema#"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@
}
},
"$schema": "http://json-schema.org/draft-07/schema#"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@
}
},
"$schema": "http://json-schema.org/draft-07/schema#"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -121,4 +121,4 @@
}
},
"$schema": "http://json-schema.org/draft-07/schema#"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ typeDefs.forEach(typeDef => {
return;
}
fs.ensureFileSync(schemaFilePath);
fs.writeFileSync(schemaFilePath, JSON.stringify(typeSchema, undefined, 4));
fs.writeFileSync(schemaFilePath, JSON.stringify(typeSchema, undefined, 4) + '\n');
console.log(`Schema version ${version} written for type ${typeDef.typeName}.`);
});

Expand Down

0 comments on commit d757ac6

Please sign in to comment.