File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 28
28
],
29
29
"sideEffects" : false ,
30
30
"type" : " module" ,
31
- "main" : " index.js" ,
32
- "types" : " index.d.ts" ,
31
+ "exports" : " ./index.js" ,
33
32
"files" : [
34
33
" lib/" ,
35
34
" index.d.ts" ,
Original file line number Diff line number Diff line change 1
1
/**
2
- * @typedef {import('mdast').Content } Content
3
2
* @typedef {import('mdast').Root } Root
4
3
*/
5
4
6
5
import assert from 'node:assert/strict'
7
6
import test from 'node:test'
8
7
import { u } from 'unist-builder'
9
- import { map } from './index.js '
8
+ import { map } from 'unist-util-map '
10
9
11
10
test ( 'map' , async function ( t ) {
12
11
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
+ ] )
14
15
} )
15
16
16
17
await t . test ( 'should map the specified node' , async function ( ) {
You can’t perform that action at this time.
0 commit comments