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 <[email protected]>
Reviewed-By: Moshe Atlow <[email protected]>
  • Loading branch information
Trott authored and ruyadorno committed Sep 8, 2023
1 parent 9e94b65 commit 76b1a4a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/doc/addon-verify.mjs
Original file line number Diff line number Diff line change
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 76b1a4a

Please sign in to comment.