Skip to content

Commit 8e96dbe

Browse files
committed
Change to use exports
1 parent 51d2f12 commit 8e96dbe

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

Diff for: package.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,7 @@
3030
],
3131
"sideEffects": false,
3232
"type": "module",
33-
"main": "index.js",
34-
"types": "index.d.ts",
33+
"exports": "./index.js",
3534
"files": [
3635
"lib/",
3736
"index.d.ts",

Diff for: test/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ import fs from 'node:fs/promises'
77
import process from 'node:process'
88
import test from 'node:test'
99
import {isHidden} from 'is-hidden'
10-
import {fromXml} from '../index.js'
10+
import {fromXml} from 'xast-util-from-xml'
1111

1212
test('fromXml', async function (t) {
1313
await t.test('should expose the public api', async function () {
14-
assert.deepEqual(Object.keys(await import('../index.js')).sort(), [
14+
assert.deepEqual(Object.keys(await import('xast-util-from-xml')).sort(), [
1515
'fromXml'
1616
])
1717
})

0 commit comments

Comments
 (0)