Skip to content

Commit d3b3b92

Browse files
committed
Change to use exports
1 parent bfee90a commit d3b3b92

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@
2727
],
2828
"sideEffects": false,
2929
"type": "module",
30-
"main": "index.js",
31-
"types": "index.d.ts",
30+
"exports": "./index.js",
3231
"files": [
3332
"lib/",
3433
"index.d.ts",

test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import assert from 'node:assert/strict'
22
import test from 'node:test'
3-
import {atom, rss} from './index.js'
3+
import {atom, rss} from 'xast-util-feed'
44

55
// Hack so the tests don’t need updating everytime…
66
const ODate = global.Date
@@ -19,7 +19,7 @@ function wrapperDate(value) {
1919

2020
test('core', async function (t) {
2121
await t.test('should expose the public api', async function () {
22-
assert.deepEqual(Object.keys(await import('./index.js')).sort(), [
22+
assert.deepEqual(Object.keys(await import('xast-util-feed')).sort(), [
2323
'atom',
2424
'rss'
2525
])

0 commit comments

Comments
 (0)