File tree 2 files changed +9
-3
lines changed
2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 24
24
],
25
25
"sideEffects" : false ,
26
26
"type" : " module" ,
27
- "main" : " index.js" ,
28
- "types" : " index.d.ts" ,
27
+ "exports" : " ./index.js" ,
29
28
"files" : [
30
29
" lib/" ,
31
30
" index.d.ts" ,
Original file line number Diff line number Diff line change 5
5
import assert from 'node:assert/strict'
6
6
import test from 'node:test'
7
7
import { fromMarkdown } from 'mdast-util-from-markdown'
8
- import { findBefore } from './index.js '
8
+ import { findBefore } from 'unist-util-find-before '
9
9
10
10
test ( '`findBefore`' , async function ( t ) {
11
+ await t . test ( 'should expose the public api' , async function ( ) {
12
+ assert . deepEqual (
13
+ Object . keys ( await import ( 'unist-util-find-before' ) ) . sort ( ) ,
14
+ [ 'findBefore' ]
15
+ )
16
+ } )
17
+
11
18
const tree = fromMarkdown ( 'Some *emphasis*, **importance**, and `code`.' )
12
19
13
20
assert ( tree . type === 'root' )
You can’t perform that action at this time.
0 commit comments