File tree 2 files changed +6
-7
lines changed
2 files changed +6
-7
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
3
import { h } from 'hastscript'
4
- import { findAndReplace } from './index.js '
4
+ import { findAndReplace } from 'hast-util-find-and-replace '
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
- 'defaultIgnore' ,
10
- ' findAndReplace'
11
- ] )
8
+ assert . deepEqual (
9
+ Object . keys ( await import ( 'hast-util-find-and-replace' ) ) . sort ( ) ,
10
+ [ 'defaultIgnore' , ' findAndReplace']
11
+ )
12
12
} )
13
13
14
14
await t . test (
You can’t perform that action at this time.
0 commit comments