We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
exports
1 parent a79ce81 commit f2f5e41Copy full SHA for f2f5e41
package.json
@@ -27,8 +27,7 @@
27
],
28
"sideEffects": false,
29
"type": "module",
30
- "main": "index.js",
31
- "types": "index.d.ts",
+ "exports": "./index.js",
32
"files": [
33
"lib/",
34
"index.d.ts",
test.js
@@ -1,12 +1,12 @@
1
import assert from 'node:assert/strict'
2
import test from 'node:test'
3
import {h} from 'hastscript'
4
+import {fromText} from 'hast-util-from-text'
5
import {u} from 'unist-builder'
-import {fromText} from './index.js'
6
7
test('fromText', async function (t) {
8
await t.test('should expose the public api', async function () {
9
- assert.deepEqual(Object.keys(await import('./index.js')).sort(), [
+ assert.deepEqual(Object.keys(await import('hast-util-from-text')).sort(), [
10
'fromText'
11
])
12
})
0 commit comments