File tree Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change 2525 ],
2626 "sideEffects" : false ,
2727 "type" : " module" ,
28- "main" : " index.js" ,
29- "types" : " index.d.ts" ,
28+ "exports" : " ./index.js" ,
3029 "files" : [
3130 " lib/" ,
3231 " 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 { h } from 'hastscript'
4- import { findAndReplace } from './index.js '
4+ import { findAndReplace } from 'hast-util-find-and-replace '
55
66test ( 'findAndReplace' , async function ( t ) {
77 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+ )
1212 } )
1313
1414 await t . test (
You can’t perform that action at this time.
0 commit comments