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 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 6
6
import assert from 'node:assert/strict'
7
7
import test from 'node:test'
8
8
import { fromMarkdown } from 'mdast-util-from-markdown'
9
- import { findAfter } from './index.js '
9
+ import { findAfter } from 'unist-util-find-after '
10
10
11
11
const tree = fromMarkdown ( 'Some _emphasis_, **importance**, and `code`.' )
12
12
const paragraph = /** @type {Parent } */ ( tree . children [ 0 ] )
13
13
const children = paragraph . children
14
14
15
15
test ( 'findAfter' , 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
- 'findAfter'
19
- ] )
17
+ assert . deepEqual (
18
+ Object . keys ( await import ( 'unist-util-find-after' ) ) . sort ( ) ,
19
+ [ 'findAfter' ]
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