Skip to content

Commit

Permalink
fixup! tools: update doctool dependencies, migrate to ESM
Browse files Browse the repository at this point in the history
  • Loading branch information
aduh95 committed Jun 11, 2021
1 parent 193419b commit d24b6a9
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
3 changes: 1 addition & 2 deletions tools/doc/addon-verify.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
// Triggered from the build-addons target in the Makefile and vcbuild.bat.

import { mkdir, writeFile } from 'fs/promises';
import { fileURLToPath } from 'url';

import gfm from 'remark-gfm';
import remarkParse from 'remark-parse';
Expand All @@ -16,7 +15,7 @@ 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(fileURLToPath(doc), 'utf8');
const file = toVFile.readSync(doc, 'utf8');
const tree = unified().use(remarkParse).use(gfm).parse(file);
const addons = {};
let id = 0;
Expand Down
14 changes: 7 additions & 7 deletions tools/doc/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tools/doc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"remark-html": "13.0.1",
"remark-parse": "^9.0.0",
"remark-rehype": "8.1.0",
"to-vfile": "7.0.0",
"to-vfile": "7.1.0",
"unified": "9.2.1",
"unist-util-select": "4.0.0",
"unist-util-visit": "3.1.0"
Expand Down

0 comments on commit d24b6a9

Please sign in to comment.