This is an automated email from the ASF dual-hosted git repository.
wangzx pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/echarts-doc.git
The following commit(s) were added to refs/heads/master by this push:
new d7d43bf6 tweak tool
d7d43bf6 is described below
commit d7d43bf6284f2416555771c1beea1ac8522f3ead
Author: plainheart <[email protected]>
AuthorDate: Sat Mar 16 23:59:01 2024 +0800
tweak tool
---
tool/extractOptionKeys.js | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/tool/extractOptionKeys.js b/tool/extractOptionKeys.js
index 3be88821..1a4d6da5 100644
--- a/tool/extractOptionKeys.js
+++ b/tool/extractOptionKeys.js
@@ -1,7 +1,6 @@
-const fs = require('fs');
+const fs = require('node:fs');
+const path = require('node:path');
const { extractOptionKeys } = require('./schemaHelper');
-
-
-const schema = JSON.parse(fs.readFileSync(__dirname +
'/../public/zh/documents/option.json', 'utf-8'));
+const schema = JSON.parse(fs.readFileSync(path.resolve(__dirname,
'../public/zh/documents/option.json'), 'utf-8'));
console.log(JSON.stringify(extractOptionKeys(schema)));
\ No newline at end of file
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]