Skip to content

Commit

Permalink
Use uvu/assert in development build
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Oct 9, 2021
1 parent 3d088ed commit ff32daf
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dev/lib/index.js
Expand Up @@ -79,7 +79,7 @@
* @typedef {ParseOptions & FromMarkdownOptions} Options
*/

import assert from 'power-assert'
import {ok as assert} from 'uvu/assert'
import {toString} from 'mdast-util-to-string'
import {parse} from 'micromark/lib/parse.js'
import {preprocess} from 'micromark/lib/preprocess.js'
Expand Down
5 changes: 3 additions & 2 deletions package.json
Expand Up @@ -51,8 +51,8 @@
"micromark-util-symbol": "^1.0.0",
"micromark-util-types": "^1.0.0",
"parse-entities": "^3.0.0",
"power-assert": "^1.0.0",
"unist-util-stringify-position": "^3.0.0"
"unist-util-stringify-position": "^3.0.0",
"uvu": "^0.5.0"
},
"devDependencies": {
"@types/power-assert": "^1.0.0",
Expand Down Expand Up @@ -96,6 +96,7 @@
"prettier": true,
"rules": {
"complexity": "off",
"node/file-extension-in-import": "off",
"unicorn/prefer-switch": "off",
"unicorn/prefer-node-protocol": "off"
}
Expand Down
2 changes: 1 addition & 1 deletion test/index.js
Expand Up @@ -5,7 +5,7 @@
import {Buffer} from 'node:buffer'
import fs from 'fs'
import path from 'path'
import assert from 'power-assert'
import assert from 'assert'
import test from 'tape'
import {unified} from 'unified'
import rehypeParse from 'rehype-parse'
Expand Down

0 comments on commit ff32daf

Please sign in to comment.