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 f2c89d6 commit 1a8bb57Copy full SHA for 1a8bb57
package.json
@@ -26,8 +26,7 @@
26
],
27
"sideEffects": false,
28
"type": "module",
29
- "main": "index.js",
30
- "types": "index.d.ts",
+ "exports": "./index.js",
31
"files": [
32
"lib/",
33
"index.d.ts",
test.js
@@ -2,11 +2,11 @@ import assert from 'node:assert/strict'
2
import test from 'node:test'
3
import {h} from 'hastscript'
4
import {selectAll} from 'hast-util-select'
5
-import {truncate} from './index.js'
+import {truncate} from 'hast-util-truncate'
6
7
test('truncate', 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-truncate')).sort(), [
10
'truncate'
11
])
12
})
0 commit comments