We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
exports
1 parent 51d2f12 commit 8e96dbeCopy full SHA for 8e96dbe
package.json
@@ -30,8 +30,7 @@
30
],
31
"sideEffects": false,
32
"type": "module",
33
- "main": "index.js",
34
- "types": "index.d.ts",
+ "exports": "./index.js",
35
"files": [
36
"lib/",
37
"index.d.ts",
test/index.js
@@ -7,11 +7,11 @@ import fs from 'node:fs/promises'
7
import process from 'node:process'
8
import test from 'node:test'
9
import {isHidden} from 'is-hidden'
10
-import {fromXml} from '../index.js'
+import {fromXml} from 'xast-util-from-xml'
11
12
test('fromXml', async function (t) {
13
await t.test('should expose the public api', async function () {
14
- assert.deepEqual(Object.keys(await import('../index.js')).sort(), [
+ assert.deepEqual(Object.keys(await import('xast-util-from-xml')).sort(), [
15
'fromXml'
16
])
17
})
0 commit comments