fix(build): compress option json & js
diff --git a/build.js b/build.js
index 09c0cbc..0f5e71f 100644
--- a/build.js
+++ b/build.js
@@ -300,14 +300,11 @@
const descBasename = `${partKey}.json`;
const descDestPath = path.resolve(config.releaseDestDir, `${language}/documents/${docName}-parts/${descBasename}`);
fse.ensureDirSync(path.dirname(descDestPath));
- const content = JSON.stringify(json, null, 2);
fse.outputFileSync(
descDestPath,
- // format ? JSON.stringify(partDescriptions, null, 2) : JSON.stringify(partDescriptions),
- content,
+ format ? JSON.stringify(json, null, 2) : JSON.stringify(json),
'utf-8'
);
- // Convnert to JS
convertToJS(descBasename, descDestPath);
}
diff --git a/tool/md2json.js b/tool/md2json.js
index 1b30a06..ec33237 100644
--- a/tool/md2json.js
+++ b/tool/md2json.js
@@ -162,7 +162,7 @@
let currentLevel = 0;
const result = {
- '$schema': 'https://echarts.apache.org/doc/json-schem',
+ '$schema': 'https://echarts.apache.org/doc/json-schema',
'option': {
'type': 'Object',
'properties': {},