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