Skip to content

Commit

Permalink
Update dev-dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Jun 18, 2022
1 parent 0584196 commit 42606f7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import {filter} from './filter.js'

/** @type {import('type-fest').PackageJson} */
const pack = JSON.parse(
String(fs.readFileSync(new URL('./package.json', import.meta.url)))
String(fs.readFileSync(new URL('package.json', import.meta.url)))
)

const textExtensions = [
Expand Down Expand Up @@ -147,7 +147,6 @@ function transform(options = {}) {
]

if (cli.flags.html) {
// @ts-expect-error: types are having a hard time for bridges.
plugins = [rehypeParse, [rehypeRetext, unified().use({plugins})]]
} else if (cli.flags.mdx) {
// @ts-expect-error: types are having a hard time for bridges.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@
"type-fest": "^2.0.0",
"typescript": "^4.0.0",
"vfile-reporter-json": "^3.0.0",
"xo": "^0.45.0"
"xo": "^0.50.0"
},
"scripts": {
"build": "rimraf \"test/**/*.d.ts\" \"*.d.ts\" && tsc && type-coverage",
Expand Down
4 changes: 2 additions & 2 deletions test/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import test from 'tape'
import alex, {markdown, mdx, text, html} from '../index.js'

const threeHtml = fs.readFileSync(
new URL('./fixtures/three.html', import.meta.url)
new URL('fixtures/three.html', import.meta.url)
)
const fourMdx = fs.readFileSync(new URL('./fixtures/four.mdx', import.meta.url))
const fourMdx = fs.readFileSync(new URL('fixtures/four.mdx', import.meta.url))

// Tests. Note that these are small because alex is in fact
// just a collection of well-tested modules.
Expand Down

0 comments on commit 42606f7

Please sign in to comment.