We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c9fa55 commit d7d43bfCopy full SHA for d7d43bf
tool/extractOptionKeys.js
@@ -1,7 +1,6 @@
1
-const fs = require('fs');
+const fs = require('node:fs');
2
+const path = require('node:path');
3
const { extractOptionKeys } = require('./schemaHelper');
4
-
5
6
-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'));
7
console.log(JSON.stringify(extractOptionKeys(schema)));
0 commit comments