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 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
/**
2
2
* @typedef {import('mdast').Root } Root
3
- * @typedef {import('../index.js ').Options } Options
3
+ * @typedef {import('remark-frontmatter ').Options } Options
4
4
*/
5
5
6
6
import assert from 'node:assert/strict'
@@ -9,11 +9,11 @@ import process from 'node:process'
9
9
import test from 'node:test'
10
10
import { isHidden } from 'is-hidden'
11
11
import { remark } from 'remark'
12
- import remarkFrontmatter from '../index.js '
12
+ import remarkFrontmatter from 'remark-frontmatter '
13
13
14
14
test ( 'remarkFrontmatter' , 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 ( ) , [
16
+ assert . deepEqual ( Object . keys ( await import ( 'remark-frontmatter ' ) ) . sort ( ) , [
17
17
'default'
18
18
] )
19
19
} )
You can’t perform that action at this time.
0 commit comments