File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 2828 ],
2929 "sideEffects" : false ,
3030 "type" : " module" ,
31- "main" : " index.js" ,
32- "types" : " index.d.ts" ,
31+ "exports" : " ./index.js" ,
3332 "files" : [
3433 " lib/" ,
3534 " index.d.ts" ,
Original file line number Diff line number Diff line change 11/**
2- * @typedef {import('mdast').Content } Content
32 * @typedef {import('mdast').Root } Root
43 */
54
65import assert from 'node:assert/strict'
76import test from 'node:test'
87import { u } from 'unist-builder'
9- import { map } from './index.js '
8+ import { map } from 'unist-util-map '
109
1110test ( 'map' , async function ( t ) {
1211 await t . test ( 'should expose the public api' , async function ( ) {
13- assert . deepEqual ( Object . keys ( await import ( './index.js' ) ) . sort ( ) , [ 'map' ] )
12+ assert . deepEqual ( Object . keys ( await import ( 'unist-util-map' ) ) . sort ( ) , [
13+ 'map'
14+ ] )
1415 } )
1516
1617 await t . test ( 'should map the specified node' , async function ( ) {
You can’t perform that action at this time.
0 commit comments