Skip to content

Commit

Permalink
tools: prepare tools/doc for to-vfile 8.0.0
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Trott authored and RafaelGSS committed Jul 3, 2023
1 parent fe16749 commit e500b43
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/doc/addon-verify.mjs
Expand Up @@ -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;
Expand Down

0 comments on commit e500b43

Please sign in to comment.