diff --git a/tools/doc/addon-verify.mjs b/tools/doc/addon-verify.mjs index 8760d0c206fea3..999fcc1c553ada 100644 --- a/tools/doc/addon-verify.mjs +++ b/tools/doc/addon-verify.mjs @@ -8,14 +8,14 @@ import { mkdir, writeFile } from 'fs/promises'; import gfm from 'remark-gfm'; import remarkParse from 'remark-parse'; -import { toVFile } from 'to-vfile'; +import { readSync } from 'to-vfile'; import { unified } from 'unified'; const rootDir = new URL('../../', import.meta.url); const doc = new URL('./doc/api/addons.md', rootDir); const verifyDir = new URL('./test/addons/', rootDir); -const file = toVFile.readSync(doc, 'utf8'); +const file = readSync(doc, 'utf8'); const tree = unified().use(remarkParse).use(gfm).parse(file); const addons = {}; let id = 0;