Skip to content

Commit 36ec992

Browse files
committed
Update script to generate schema JSON with 2 space indentation
1 parent 1a52bbc commit 36ec992

File tree

2 files changed

+97823
-97823
lines changed

2 files changed

+97823
-97823
lines changed

tasks/schema.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ function makeSchema(plotlyPath, schemaPath) {
4242
const Plotly = plotlyNode(plotlyPath);
4343
const obj = Plotly.PlotSchema.get();
4444
const sortedObj = sortObject(obj);
45-
const plotSchemaRaw = JSON.stringify(obj, null, 1);
46-
const plotSchemaStr = JSON.stringify(sortedObj, null, 1);
45+
const plotSchemaRaw = JSON.stringify(obj, null, 2);
46+
const plotSchemaStr = JSON.stringify(sortedObj, null, 2);
4747

4848
fs.writeFileSync(schemaPath, plotSchemaStr);
4949

0 commit comments

Comments
 (0)