Skip to content

Commit 2463986

Browse files
committed
Change to use export map
1 parent c61c7aa commit 2463986

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
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: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* @typedef {import('mdast').Root} Root
33
* @typedef {import('mdast-util-from-markdown').Options} FromMarkdownOptions
4-
* @typedef {import('../index.js').Options} Options
4+
* @typedef {import('mdast-util-to-nlcst').Options} Options
55
*/
66

77
/**
@@ -19,18 +19,18 @@ import {isHidden} from 'is-hidden'
1919
import {fromMarkdown} from 'mdast-util-from-markdown'
2020
import {frontmatterFromMarkdown} from 'mdast-util-frontmatter'
2121
import {gfmFromMarkdown} from 'mdast-util-gfm'
22+
import {toNlcst} from 'mdast-util-to-nlcst'
2223
import {frontmatter} from 'micromark-extension-frontmatter'
2324
import {gfm} from 'micromark-extension-gfm'
2425
import {ParseLatin} from 'parse-latin'
2526
import {ParseDutch} from 'parse-dutch'
2627
import {ParseEnglish} from 'parse-english'
2728
import {read} from 'to-vfile'
2829
import {VFile} from 'vfile'
29-
import {toNlcst} from '../index.js'
3030

3131
test('toNlcst', async function (t) {
3232
await t.test('should expose the public api', async function () {
33-
assert.deepEqual(Object.keys(await import('../index.js')).sort(), [
33+
assert.deepEqual(Object.keys(await import('mdast-util-to-nlcst')).sort(), [
3434
'toNlcst'
3535
])
3636
})

0 commit comments

Comments
 (0)