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 26
26
],
27
27
"sideEffects" : false ,
28
28
"type" : " module" ,
29
- "main" : " index.js" ,
30
- "types" : " index.d.ts" ,
29
+ "exports" : " ./index.js" ,
31
30
"files" : [
32
31
" lib/" ,
33
32
" index.d.ts" ,
Original file line number Diff line number Diff line change 1
1
import assert from 'node:assert/strict'
2
2
import test from 'node:test'
3
3
import { h } from 'hastscript'
4
+ import { excerpt } from 'hast-util-excerpt'
4
5
import { selectAll } from 'hast-util-select'
5
6
import { fromMarkdown } from 'mdast-util-from-markdown'
6
7
import { mdxFromMarkdown } from 'mdast-util-mdx'
7
8
import { toHast } from 'mdast-util-to-hast'
8
9
import { mdxjs } from 'micromark-extension-mdxjs'
9
10
import { u } from 'unist-builder'
10
11
import { removePosition } from 'unist-util-remove-position'
11
- import { excerpt } from './index.js'
12
12
13
13
test ( 'excerpt' , async function ( t ) {
14
14
await t . test ( 'should expose the public api' , async function ( ) {
15
- assert . deepEqual ( Object . keys ( await import ( './index.js ' ) ) . sort ( ) , [
15
+ assert . deepEqual ( Object . keys ( await import ( 'hast-util-excerpt ' ) ) . sort ( ) , [
16
16
'excerpt'
17
17
] )
18
18
} )
You can’t perform that action at this time.
0 commit comments