File tree 2 files changed +4
-5
lines changed
2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 27
27
],
28
28
"sideEffects" : false ,
29
29
"type" : " module" ,
30
- "main" : " index.js" ,
31
- "types" : " index.d.ts" ,
30
+ "exports" : " ./index.js" ,
32
31
"files" : [
33
32
" lib/" ,
34
33
" index.d.ts" ,
Original file line number Diff line number Diff line change 1
1
/**
2
2
* @typedef {import('mdast').Root } Root
3
3
* @typedef {import('mdast-util-from-markdown').Options } FromMarkdownOptions
4
- * @typedef {import('../index.js ').Options } Options
4
+ * @typedef {import('mdast-util-to-nlcst ').Options } Options
5
5
*/
6
6
7
7
/**
@@ -19,18 +19,18 @@ import {isHidden} from 'is-hidden'
19
19
import { fromMarkdown } from 'mdast-util-from-markdown'
20
20
import { frontmatterFromMarkdown } from 'mdast-util-frontmatter'
21
21
import { gfmFromMarkdown } from 'mdast-util-gfm'
22
+ import { toNlcst } from 'mdast-util-to-nlcst'
22
23
import { frontmatter } from 'micromark-extension-frontmatter'
23
24
import { gfm } from 'micromark-extension-gfm'
24
25
import { ParseLatin } from 'parse-latin'
25
26
import { ParseDutch } from 'parse-dutch'
26
27
import { ParseEnglish } from 'parse-english'
27
28
import { read } from 'to-vfile'
28
29
import { VFile } from 'vfile'
29
- import { toNlcst } from '../index.js'
30
30
31
31
test ( 'toNlcst' , async function ( t ) {
32
32
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 ( ) , [
34
34
'toNlcst'
35
35
] )
36
36
} )
You can’t perform that action at this time.
0 commit comments