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 11import assert from 'node:assert/strict'
22import test from 'node:test'
33import { fromMarkdown } from 'mdast-util-from-markdown'
4- import { findAllBefore } from './index.js '
4+ import { findAllBefore } from 'unist-util-find-all-before '
55
66const tree = fromMarkdown ( 'Some _emphasis_, **importance**, and `code`.' )
77const paragraph = tree . children [ 0 ]
@@ -10,9 +10,10 @@ const children = paragraph.children
1010
1111test ( 'findAllBefore' , async function ( t ) {
1212 await t . test ( 'should expose the public api' , async function ( ) {
13- assert . deepEqual ( Object . keys ( await import ( './index.js' ) ) . sort ( ) , [
14- 'findAllBefore'
15- ] )
13+ assert . deepEqual (
14+ Object . keys ( await import ( 'unist-util-find-all-before' ) ) . sort ( ) ,
15+ [ 'findAllBefore' ]
16+ )
1617 } )
1718
1819 await t . test ( 'should fail without parent' , async function ( ) {
You can’t perform that action at this time.
0 commit comments