Skip to content

Commit f07f1c7

Browse files
authored
Merge pull request #7626 from plotly/cam/7625/update-schema-build-script
refactor: Update script to generate schema JSON with 2 space indentation
2 parents 9f2569b + c211fc7 commit f07f1c7

File tree

2 files changed

+97859
-97859
lines changed

2 files changed

+97859
-97859
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)