File tree 2 files changed +6
-6
lines changed
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 25
25
],
26
26
"sideEffects" : false ,
27
27
"type" : " module" ,
28
- "main" : " index.js" ,
29
- "types" : " index.d.ts" ,
28
+ "exports" : " ./index.js" ,
30
29
"files" : [
31
30
" lib/" ,
32
31
" 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
+ import { findAndReplace } from 'mdast-util-find-and-replace'
3
4
import { u } from 'unist-builder'
4
- import { findAndReplace } from './index.js'
5
5
6
6
test ( 'findAndReplace' , async function ( t ) {
7
7
await t . test ( 'should expose the public api' , async function ( ) {
8
- assert . deepEqual ( Object . keys ( await import ( './index.js' ) ) . sort ( ) , [
9
- 'findAndReplace'
10
- ] )
8
+ assert . deepEqual (
9
+ Object . keys ( await import ( 'mdast-util-find-and-replace' ) ) . sort ( ) ,
10
+ [ 'findAndReplace' ]
11
+ )
11
12
} )
12
13
13
14
await t . test (
You can’t perform that action at this time.
0 commit comments