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 27
27
],
28
28
"sideEffects" : false ,
29
29
"type" : " module" ,
30
- "main" : " index.js" ,
31
- "types" : " index.d.ts" ,
30
+ "exports" : " ./index.js" ,
32
31
"files" : [
33
32
" lib/" ,
34
33
" 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 { toText } from 'hast-util-to-text'
4
5
import { u } from 'unist-builder'
5
- import { toText } from './index.js'
6
6
7
7
test ( 'toText' , 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 ( ) , [ 'toText' ] )
9
+ assert . deepEqual ( Object . keys ( await import ( 'hast-util-to-text' ) ) . sort ( ) , [
10
+ 'toText'
11
+ ] )
10
12
} )
11
13
12
14
await t . test ( 'should default to `whitespace: normal`' , async function ( ) {
You can’t perform that action at this time.
0 commit comments