Skip to content

Commit

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

import assert from 'assert'
import assert from 'power-assert'
import {toString} from 'mdast-util-to-string'
import {parse} from 'micromark/lib/parse.js'
import {preprocess} from 'micromark/lib/preprocess.js'
Expand Down
2 changes: 2 additions & 0 deletions package.json
Expand Up @@ -51,9 +51,11 @@
"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"
},
"devDependencies": {
"@types/power-assert": "^1.0.0",
"@types/tape": "^4.0.0",
"c8": "^7.0.0",
"commonmark.json": "^0.30.0",
Expand Down
2 changes: 1 addition & 1 deletion test/index.js
Expand Up @@ -2,10 +2,10 @@
* @typedef {import('mdast').Root} Root
*/

import assert from 'assert'
import {Buffer} from 'node:buffer'
import fs from 'fs'
import path from 'path'
import assert from 'power-assert'
import test from 'tape'
import {unified} from 'unified'
import rehypeParse from 'rehype-parse'
Expand Down

0 comments on commit a13fbcc

Please sign in to comment.