Skip to content

Commit d7d43bf

Browse files
committed
tweak tool
1 parent 7c9fa55 commit d7d43bf

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

tool/extractOptionKeys.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
const fs = require('fs');
1+
const fs = require('node:fs');
2+
const path = require('node:path');
23
const { extractOptionKeys } = require('./schemaHelper');
34

4-
5-
6-
const schema = JSON.parse(fs.readFileSync(__dirname + '/../public/zh/documents/option.json', 'utf-8'));
5+
const schema = JSON.parse(fs.readFileSync(path.resolve(__dirname, '../public/zh/documents/option.json'), 'utf-8'));
76
console.log(JSON.stringify(extractOptionKeys(schema)));

0 commit comments

Comments
 (0)