Skip to content

Commit

Permalink
Change to use exports
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Aug 31, 2023
1 parent 87da225 commit 6855bcc
Show file tree
Hide file tree
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
Expand Up @@ -25,8 +25,7 @@
],
"sideEffects": false,
"type": "module",
"types": "index.d.ts",
"main": "index.js",
"exports": "./index.js",
"files": [
"lib/",
"index.d.ts",
Expand Down
4 changes: 2 additions & 2 deletions test.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import assert from 'node:assert/strict'
import test from 'node:test'
import {rehype} from 'rehype'
import rehypeSlug from './index.js'
import rehypeSlug from 'rehype-slug'

test('rehypeSlug', 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-slug')).sort(), [
'default'
])
})
Expand Down

0 comments on commit 6855bcc

Please sign in to comment.