Skip to content

Commit 79dcd96

Browse files
Trottruyadorno
authored andcommittedSep 12, 2023
tools: prepare tools/doc for to-vfile 8.0.0
toVFile.readSync() is removed in favor of readSync(). PR-URL: #48485 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
1 parent 0056cb9 commit 79dcd96

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎tools/doc/addon-verify.mjs

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ import { mkdir, writeFile } from 'fs/promises';
88

99
import gfm from 'remark-gfm';
1010
import remarkParse from 'remark-parse';
11-
import { toVFile } from 'to-vfile';
11+
import { readSync } from 'to-vfile';
1212
import { unified } from 'unified';
1313

1414
const rootDir = new URL('../../', import.meta.url);
1515
const doc = new URL('./doc/api/addons.md', rootDir);
1616
const verifyDir = new URL('./test/addons/', rootDir);
1717

18-
const file = toVFile.readSync(doc, 'utf8');
18+
const file = readSync(doc, 'utf8');
1919
const tree = unified().use(remarkParse).use(gfm).parse(file);
2020
const addons = {};
2121
let id = 0;

0 commit comments

Comments
 (0)
Please sign in to comment.