This is an automated email from the ASF dual-hosted git repository.

sushuang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-echarts-doc.git


The following commit(s) were added to refs/heads/master by this push:
     new 308155f  fix: build script.
308155f is described below

commit 308155f6cc6017fe221db87da59368c381ab6253
Author: 100pah <sushuang0...@gmail.com>
AuthorDate: Wed Aug 5 22:32:53 2020 +0800

    fix: build script.
---
 build.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/build.js b/build.js
index 10ece37..b8cc3df 100644
--- a/build.js
+++ b/build.js
@@ -256,7 +256,7 @@ function writeSingleSchemaPartioned(schema, language, 
docName, format) {
     const outlineBasename = `${docName}-outline.json`;
     const outlineDestPath = path.resolve(config.releaseDestDir, 
`${language}/documents/${docName}-parts/${outlineBasename}`);
     fse.ensureDirSync(path.dirname(outlineDestPath));
-    fse.outputFile(
+    fse.outputFileSync(
         outlineDestPath,
         format ? JSON.stringify(outline, null, 2) : JSON.stringify(outline),
         'utf-8'
@@ -295,7 +295,7 @@ function writeSingleSchemaPartioned(schema, language, 
docName, format) {
         const descDestPath = path.resolve(config.releaseDestDir, 
`${language}/documents/${docName}-parts/${descBasename}`);
         fse.ensureDirSync(path.dirname(descDestPath));
         const content = JSON.stringify(json, null, 2);
-        fse.outputFile(
+        fse.outputFileSync(
             descDestPath,
             // format ? JSON.stringify(partDescriptions, null, 2) : 
JSON.stringify(partDescriptions),
             content,


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org
For additional commands, e-mail: commits-h...@echarts.apache.org

Reply via email to