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 2727 ],
2828 "sideEffects" : false ,
2929 "type" : " module" ,
30- "main" : " index.js" ,
31- "types" : " index.d.ts" ,
30+ "exports" : " ./index.js" ,
3231 "files" : [
3332 " lib/" ,
3433 " index.d.ts" ,
Original file line number Diff line number Diff line change 55import assert from 'node:assert/strict'
66import test from 'node:test'
77import { h , s } from 'hastscript'
8+ import { toXast } from 'hast-util-to-xast'
89import { u } from 'unist-builder'
910import { webNamespaces } from 'web-namespaces'
1011import { x } from 'xastscript'
11- import { toXast } from './index.js'
1212
1313test ( 'main' , async function ( t ) {
1414 await t . test ( 'should expose the public api' , async function ( ) {
15- assert . deepEqual ( Object . keys ( await import ( './index.js' ) ) . sort ( ) , [ 'toXast' ] )
15+ assert . deepEqual ( Object . keys ( await import ( 'hast-util-to-xast' ) ) . sort ( ) , [
16+ 'toXast'
17+ ] )
1618 } )
1719
1820 await t . test ( 'should throw without node' , async function ( ) {
You can’t perform that action at this time.
0 commit comments