Skip to content

Commit 6855bcc

Browse files
committedAug 31, 2023
Change to use exports
1 parent 87da225 commit 6855bcc

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed
 

‎package.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,7 @@
2525
],
2626
"sideEffects": false,
2727
"type": "module",
28-
"types": "index.d.ts",
29-
"main": "index.js",
28+
"exports": "./index.js",
3029
"files": [
3130
"lib/",
3231
"index.d.ts",

‎test.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import assert from 'node:assert/strict'
22
import test from 'node:test'
33
import {rehype} from 'rehype'
4-
import rehypeSlug from './index.js'
4+
import rehypeSlug from 'rehype-slug'
55

66
test('rehypeSlug', async function (t) {
77
await t.test('should expose the public api', async function () {
8-
assert.deepEqual(Object.keys(await import('./index.js')).sort(), [
8+
assert.deepEqual(Object.keys(await import('rehype-slug')).sort(), [
99
'default'
1010
])
1111
})

0 commit comments

Comments
 (0)
Please sign in to comment.