We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
exports
1 parent 1c346a0 commit 864ab64Copy full SHA for 864ab64
package.json
@@ -25,8 +25,7 @@
25
],
26
"sideEffects": false,
27
"type": "module",
28
- "main": "index.js",
29
- "types": "index.d.ts",
+ "exports": "./index.js",
30
"files": [
31
"lib/",
32
"index.d.ts",
test.js
@@ -4,11 +4,11 @@
4
5
import assert from 'node:assert/strict'
6
import test from 'node:test'
7
-import {isElement} from './index.js'
+import {isElement} from 'hast-util-is-element'
8
9
test('isElement', async function (t) {
10
await t.test('should expose the public api', async function () {
11
- assert.deepEqual(Object.keys(await import('./index.js')).sort(), [
+ assert.deepEqual(Object.keys(await import('hast-util-is-element')).sort(), [
12
'convertElement',
13
'isElement'
14
])
0 commit comments