File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 24
24
],
25
25
"sideEffects" : false ,
26
26
"type" : " module" ,
27
- "main" : " index.js" ,
28
- "types" : " index.d.ts" ,
27
+ "exports" : " ./index.js" ,
29
28
"files" : [
30
29
" lib/" ,
31
30
" 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 { size } from './index.js '
4
+ import { size } from 'unist-util-size '
5
5
6
6
test ( 'size' , 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 ( ) , [ 'size' ] )
8
+ assert . deepEqual ( Object . keys ( await import ( 'unist-util-size' ) ) . sort ( ) , [
9
+ 'size'
10
+ ] )
9
11
} )
10
12
11
13
const tree = h ( 'div' , [
You can’t perform that action at this time.
0 commit comments