We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
exports
1 parent a199a83 commit 3eb29a6Copy full SHA for 3eb29a6
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
@@ -1,11 +1,11 @@
1
import assert from 'node:assert/strict'
2
import test from 'node:test'
3
import {u} from 'unist-builder'
4
-import {toString} from './index.js'
+import {toString} from 'xast-util-to-string'
5
6
test('toString', async function (t) {
7
await t.test('should expose the public api', async function () {
8
- assert.deepEqual(Object.keys(await import('./index.js')).sort(), [
+ assert.deepEqual(Object.keys(await import('xast-util-to-string')).sort(), [
9
'toString'
10
])
11
})
0 commit comments