File tree 2 files changed +3
-4
lines changed
2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 28
28
],
29
29
"sideEffects" : false ,
30
30
"type" : " module" ,
31
- "main" : " index.js" ,
32
- "types" : " index.d.ts" ,
31
+ "exports" : " ./index.js" ,
33
32
"files" : [
34
33
" lib/" ,
35
34
" index.d.ts" ,
Original file line number Diff line number Diff line change @@ -2,16 +2,16 @@ import assert from 'node:assert/strict'
2
2
import fs from 'node:fs/promises'
3
3
import test from 'node:test'
4
4
import { fromHtml } from 'hast-util-from-html'
5
+ import { toNlcst } from 'hast-util-to-nlcst'
5
6
import { isHidden } from 'is-hidden'
6
7
import { ParseDutch } from 'parse-dutch'
7
8
import { ParseEnglish } from 'parse-english'
8
9
import { ParseLatin } from 'parse-latin'
9
10
import { VFile } from 'vfile'
10
- import { toNlcst } from '../index.js'
11
11
12
12
test ( 'toNlcst' , async function ( t ) {
13
13
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 ( 'hast-util-to-nlcst ' ) ) . sort ( ) , [
15
15
'toNlcst'
16
16
] )
17
17
} )
You can’t perform that action at this time.
0 commit comments