Skip to content

Commit 5c90701

Browse files
committed
Change to use exports map
1 parent 89d0f5b commit 5c90701

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,7 @@
3030
],
3131
"sideEffects": false,
3232
"type": "module",
33-
"main": "index.js",
34-
"types": "index.d.ts",
33+
"exports": "./index.js",
3534
"files": [
3635
"lib/",
3736
"index.d.ts",

test/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
/**
22
* @typedef {import('mdast').BlockContent} BlockContent
33
* @typedef {import('mdast').List} List
4-
* @typedef {import('../index.js').Handle} Handle
4+
* @typedef {import('mdast-util-to-markdown').Handle} Handle
55
*/
66

77
import assert from 'node:assert/strict'
88
import test from 'node:test'
99
import {removePosition} from 'unist-util-remove-position'
1010
import {fromMarkdown as from} from 'mdast-util-from-markdown'
11-
import {toMarkdown as to} from '../index.js'
11+
import {toMarkdown as to} from 'mdast-util-to-markdown'
1212

1313
test('core', async function (t) {
1414
await t.test('should expose the public api', async function () {

0 commit comments

Comments
 (0)