File tree 2 files changed +8
-8
lines changed
2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 26
26
],
27
27
"sideEffects" : false ,
28
28
"type" : " module" ,
29
- "main" : " index.js" ,
30
- "types" : " index.d.ts" ,
29
+ "exports" : " ./index.js" ,
31
30
"files" : [
32
31
" lib/" ,
33
32
" index.d.ts" ,
Original file line number Diff line number Diff line change 1
1
/**
2
2
* @typedef {import('mdast').InlineCode } InlineCode
3
3
* @typedef {import('mdast').Root } Root
4
- * @typedef {import('./index.js ').Test } Test
5
- * @typedef {import('./index.js ').Options } Options
4
+ * @typedef {import('mdast-util-heading-range ').Test } Test
5
+ * @typedef {import('mdast-util-heading-range ').Options } Options
6
6
*/
7
7
8
8
import assert from 'node:assert/strict'
9
9
import test from 'node:test'
10
10
import { fromMarkdown } from 'mdast-util-from-markdown'
11
11
import { toMarkdown } from 'mdast-util-to-markdown'
12
- import { headingRange } from './index.js '
12
+ import { headingRange } from 'mdast-util-heading-range '
13
13
14
14
test ( 'headingRange' , async function ( t ) {
15
15
await t . test ( 'should expose the public api' , async function ( ) {
16
- assert . deepEqual ( Object . keys ( await import ( './index.js' ) ) . sort ( ) , [
17
- 'headingRange'
18
- ] )
16
+ assert . deepEqual (
17
+ Object . keys ( await import ( 'mdast-util-heading-range' ) ) . sort ( ) ,
18
+ [ 'headingRange' ]
19
+ )
19
20
} )
20
21
21
22
await t . test ( 'should be a function' , async function ( ) {
You can’t perform that action at this time.
0 commit comments