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