Skip to content

Commit 86ebba5

Browse files
committed
Change to use exports
1 parent f2c1c9c commit 86ebba5

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@
2828
],
2929
"sideEffects": false,
3030
"type": "module",
31-
"main": "index.js",
32-
"types": "index.d.ts",
31+
"exports": "./index.js",
3332
"files": [
3433
"lib/",
3534
"index.d.ts",

test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import assert from 'node:assert/strict'
22
import test from 'node:test'
3-
import {whitespace} from './index.js'
3+
import {whitespace} from 'hast-util-whitespace'
44

55
test('whitespace', async function (t) {
66
await t.test('should expose the public api', async function () {
7-
assert.deepEqual(Object.keys(await import('./index.js')).sort(), [
7+
assert.deepEqual(Object.keys(await import('hast-util-whitespace')).sort(), [
88
'whitespace'
99
])
1010
})

0 commit comments

Comments
 (0)