File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
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 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 { findAllAfter } from './index.js '
8
+ import { findAllAfter } from 'unist-util-find-all-after '
9
9
10
10
const tree = fromMarkdown ( 'Some *emphasis*, **importance**, and `code`.' )
11
11
const paragraph = tree . children [ 0 ]
@@ -14,9 +14,10 @@ const children = paragraph.children
14
14
15
15
test ( 'findAllAfter' , async function ( t ) {
16
16
await t . test ( 'should expose the public api' , async function ( ) {
17
- assert . deepEqual ( Object . keys ( await import ( './index.js' ) ) . sort ( ) , [
18
- 'findAllAfter'
19
- ] )
17
+ assert . deepEqual (
18
+ Object . keys ( await import ( 'unist-util-find-all-after' ) ) . sort ( ) ,
19
+ [ 'findAllAfter' ]
20
+ )
20
21
} )
21
22
22
23
await t . test ( 'should fail without parent' , async function ( ) {
You can’t perform that action at this time.
0 commit comments