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 1
1
import assert from 'node:assert/strict'
2
2
import test from 'node:test'
3
3
import { fromMarkdown } from 'mdast-util-from-markdown'
4
- import { findAllBefore } from './index.js '
4
+ import { findAllBefore } from 'unist-util-find-all-before '
5
5
6
6
const tree = fromMarkdown ( 'Some _emphasis_, **importance**, and `code`.' )
7
7
const paragraph = tree . children [ 0 ]
@@ -10,9 +10,10 @@ const children = paragraph.children
10
10
11
11
test ( 'findAllBefore' , async function ( t ) {
12
12
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
+ )
16
17
} )
17
18
18
19
await t . test ( 'should fail without parent' , async function ( ) {
You can’t perform that action at this time.
0 commit comments