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 2424 ],
2525 "sideEffects" : false ,
2626 "type" : " module" ,
27- "main" : " index.js" ,
28- "types" : " index.d.ts" ,
27+ "exports" : " ./index.js" ,
2928 "files" : [
3029 " lib/" ,
3130 " index.d.ts" ,
Original file line number Diff line number Diff line change 66import assert from 'node:assert/strict'
77import test from 'node:test'
88import { fromMarkdown } from 'mdast-util-from-markdown'
9- import { findAfter } from './index.js '
9+ import { findAfter } from 'unist-util-find-after '
1010
1111const tree = fromMarkdown ( 'Some _emphasis_, **importance**, and `code`.' )
1212const paragraph = /** @type {Parent } */ ( tree . children [ 0 ] )
1313const children = paragraph . children
1414
1515test ( 'findAfter' , async function ( t ) {
1616 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+ )
2021 } )
2122
2223 await t . test ( 'should fail without parent' , async function ( ) {
You can’t perform that action at this time.
0 commit comments