File tree 2 files changed +6
-6
lines changed
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 29
29
],
30
30
"sideEffects" : false ,
31
31
"type" : " module" ,
32
- "main" : " index.js" ,
33
- "types" : " index.d.ts" ,
32
+ "exports" : " ./index.js" ,
34
33
"files" : [
35
34
" lib/" ,
36
35
" 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 { h } from 'hastscript'
4
- import { shiftHeading } from './index.js '
4
+ import { shiftHeading } from 'hast-util-shift-heading '
5
5
6
6
test ( 'shiftHeading' , async function ( t ) {
7
7
await t . test ( 'should expose the public api' , async function ( ) {
8
- assert . deepEqual ( Object . keys ( await import ( './index.js' ) ) . sort ( ) , [
9
- 'shiftHeading'
10
- ] )
8
+ assert . deepEqual (
9
+ Object . keys ( await import ( 'hast-util-shift-heading' ) ) . sort ( ) ,
10
+ [ 'shiftHeading' ]
11
+ )
11
12
} )
12
13
13
14
await t . test ( 'should throw when not given a number' , async function ( ) {
You can’t perform that action at this time.
0 commit comments