Skip to content

Commit

Permalink
Change to use exports
Browse files Browse the repository at this point in the history
wooorm committed Aug 26, 2023

Verified

This commit was signed with the committer’s verified signature.
wooorm Titus
1 parent a12b494 commit cd34249
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -23,8 +23,7 @@
],
"sideEffects": false,
"type": "module",
"main": "index.js",
"types": "index.d.ts",
"exports": "./index.js",
"files": [
"lib/",
"index.d.ts",
4 changes: 2 additions & 2 deletions test.js
Original file line number Diff line number Diff line change
@@ -9,11 +9,11 @@ import remarkParse from 'remark-parse'
import remarkRehype from 'remark-rehype'
import {unified} from 'unified'
import {visit} from 'unist-util-visit'
import rehypeRaw from './index.js'
import rehypeRaw from 'rehype-raw'

test('rehypeRaw', async function (t) {
await t.test('should expose the public api', async function () {
assert.deepEqual(Object.keys(await import('./index.js')).sort(), [
assert.deepEqual(Object.keys(await import('rehype-raw')).sort(), [
'default'
])
})

0 comments on commit cd34249

Please sign in to comment.