File tree 2 files changed +5
-4
lines changed 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 { fromMarkdown } from 'mdast-util-from-markdown'
4
+ import { source } from 'unist-util-source'
4
5
import { VFile } from 'vfile'
5
- import { source } from './index.js'
6
6
7
7
test ( 'source' , 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 ( ) , [ 'source' ] )
9
+ assert . deepEqual ( Object . keys ( await import ( 'unist-util-source' ) ) . sort ( ) , [
10
+ 'source'
11
+ ] )
10
12
} )
11
13
12
14
const file = new VFile ( '> + **[Hello](./example)**\n> world.' )
You can’t perform that action at this time.
0 commit comments