File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 2828 ],
2929 "sideEffects" : false ,
3030 "type" : " module" ,
31- "main" : " index.js" ,
32- "types" : " index.d.ts" ,
31+ "exports" : " ./index.js" ,
3332 "files" : [
3433 " lib/" ,
3534 " index.d.ts" ,
Original file line number Diff line number Diff line change 44
55import assert from 'node:assert/strict'
66import test from 'node:test'
7+ import { definitions } from 'mdast-util-definitions'
78import { fromMarkdown } from 'mdast-util-from-markdown'
8- import { definitions } from './index.js'
99
1010test ( 'definitions' , async function ( t ) {
1111 await t . test ( 'should expose the public api' , async function ( ) {
12- assert . deepEqual ( Object . keys ( await import ( './index.js' ) ) . sort ( ) , [
13- 'definitions'
14- ] )
12+ assert . deepEqual (
13+ Object . keys ( await import ( 'mdast-util-definitions' ) ) . sort ( ) ,
14+ [ 'definitions' ]
15+ )
1516 } )
1617
1718 await t . test ( 'should fail without node' , async function ( ) {
You can’t perform that action at this time.
0 commit comments