Skip to content

Commit 53bdfa1

Browse files
committedAug 8, 2023
Change to use exports
1 parent 3617448 commit 53bdfa1

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed
 

Diff for: ‎package.json

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

Diff for: ‎test/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ import assert from 'node:assert/strict'
66
import fs from 'node:fs/promises'
77
import process from 'node:process'
88
import test from 'node:test'
9+
import {fromHtml} from 'hast-util-from-html'
910
import {read} from 'to-vfile'
1011
import {VFile} from 'vfile'
1112
import {errors as rerrors} from '../lib/errors.js'
12-
import {fromHtml} from '../index.js'
1313

1414
test('fromHtml', async function (t) {
1515
await t.test('should expose the public api', async function () {
16-
assert.deepEqual(Object.keys(await import('../index.js')).sort(), [
16+
assert.deepEqual(Object.keys(await import('hast-util-from-html')).sort(), [
1717
'fromHtml'
1818
])
1919
})

0 commit comments

Comments
 (0)
Please sign in to comment.