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 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'
3+ import { findAndReplace } from 'mdast-util-find-and-replace'
34import { u } from 'unist-builder'
4- import { findAndReplace } from './index.js'
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- 'findAndReplace'
10- ] )
8+ assert . deepEqual (
9+ Object . keys ( await import ( 'mdast-util-find-and-replace' ) ) . sort ( ) ,
10+ [ 'findAndReplace' ]
11+ )
1112 } )
1213
1314 await t . test (
You can’t perform that action at this time.
0 commit comments