File tree 2 files changed +4
-5
lines changed
2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 31
31
],
32
32
"sideEffects" : false ,
33
33
"type" : " module" ,
34
- "main" : " index.js" ,
35
- "types" : " index.d.ts" ,
34
+ "exports" : " ./index.js" ,
36
35
"files" : [
37
36
" lib/" ,
38
37
" index.d.ts" ,
Original file line number Diff line number Diff line change 1
1
/**
2
- * @typedef {import('../index.js ').Options } Options
2
+ * @typedef {import('remark-toc ').Options } Options
3
3
*/
4
4
5
5
import assert from 'node:assert/strict'
@@ -8,11 +8,11 @@ import process from 'node:process'
8
8
import test from 'node:test'
9
9
import { isHidden } from 'is-hidden'
10
10
import { remark } from 'remark'
11
- import remarkToc from '../index.js '
11
+ import remarkToc from 'remark-toc '
12
12
13
13
test ( 'remarkToc' , async function ( t ) {
14
14
await t . test ( 'should expose the public api' , async function ( ) {
15
- assert . deepEqual ( Object . keys ( await import ( '../index.js ' ) ) . sort ( ) , [
15
+ assert . deepEqual ( Object . keys ( await import ( 'remark-toc ' ) ) . sort ( ) , [
16
16
'default'
17
17
] )
18
18
} )
You can’t perform that action at this time.
0 commit comments