File tree 2 files changed +3
-4
lines changed
2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 28
28
],
29
29
"sideEffects" : false ,
30
30
"type" : " module" ,
31
- "main" : " index.js" ,
32
- "types" : " index.d.ts" ,
31
+ "exports" : " ./index.js" ,
33
32
"files" : [
34
33
" lib/" ,
35
34
" 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 { directive } from 'micromark-extension-directive'
4
+ import { directiveFromMarkdown , directiveToMarkdown } from 'mdast-util-directive'
4
5
import { fromMarkdown } from 'mdast-util-from-markdown'
5
6
import { toMarkdown } from 'mdast-util-to-markdown'
6
7
import { removePosition } from 'unist-util-remove-position'
7
- import { directiveFromMarkdown , directiveToMarkdown } from './index.js'
8
8
9
9
test ( 'core' , async function ( t ) {
10
10
await t . test ( 'should expose the public api' , async function ( ) {
11
- assert . deepEqual ( Object . keys ( await import ( './index.js ' ) ) . sort ( ) , [
11
+ assert . deepEqual ( Object . keys ( await import ( 'mdast-util-directive ' ) ) . sort ( ) , [
12
12
'directiveFromMarkdown' ,
13
13
'directiveToMarkdown'
14
14
] )
You can’t perform that action at this time.
0 commit comments