Skip to content

Commit 3eb29a6

Browse files
committed
Change to use exports
1 parent a199a83 commit 3eb29a6

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
@@ -26,8 +26,7 @@
2626
],
2727
"sideEffects": false,
2828
"type": "module",
29-
"main": "index.js",
30-
"types": "index.d.ts",
29+
"exports": "./index.js",
3130
"files": [
3231
"lib/",
3332
"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 {u} from 'unist-builder'
4-
import {toString} from './index.js'
4+
import {toString} from 'xast-util-to-string'
55

66
test('toString', 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('xast-util-to-string')).sort(), [
99
'toString'
1010
])
1111
})

0 commit comments

Comments
 (0)