Skip to content

Commit 626921c

Browse files
committed
Change to use exports
1 parent be36d58 commit 626921c

File tree

3 files changed

+3
-4
lines changed

3 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/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ process.on('exit', function () {
4242

4343
test('unifiedDiff', async function (t) {
4444
await t.test('should expose the public api', async function () {
45-
assert.deepEqual(Object.keys(await import('../index.js')).sort(), [
45+
assert.deepEqual(Object.keys(await import('unified-diff')).sort(), [
4646
'default'
4747
])
4848
})

test/processor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
import {toString} from 'nlcst-to-string'
66
import {ParseEnglish} from 'parse-english'
77
import {unified} from 'unified'
8+
import unifiedDiff from 'unified-diff'
89
import {visit} from 'unist-util-visit'
9-
import unifiedDiff from '../index.js'
1010

1111
// To do: use `retext-english`, `retext-stringify` when they are released.
1212
// import retextEnglish from 'retext-english'

0 commit comments

Comments
 (0)