Skip to content

Commit 03c4d87

Browse files
committed
Change to use exports
1 parent 2ee7fdd commit 03c4d87

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

package.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@
2828
],
2929
"sideEffects": false,
3030
"type": "module",
31-
"main": "index.js",
32-
"types": "index.d.ts",
31+
"exports": "./index.js",
3332
"files": [
3433
"lib/",
3534
"index.d.ts",

test.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
import assert from 'node:assert/strict'
22
import test from 'node:test'
33
import {directive} from 'micromark-extension-directive'
4+
import {directiveFromMarkdown, directiveToMarkdown} from 'mdast-util-directive'
45
import {fromMarkdown} from 'mdast-util-from-markdown'
56
import {toMarkdown} from 'mdast-util-to-markdown'
67
import {removePosition} from 'unist-util-remove-position'
7-
import {directiveFromMarkdown, directiveToMarkdown} from './index.js'
88

99
test('core', async function (t) {
1010
await t.test('should expose the public api', async function () {
11-
assert.deepEqual(Object.keys(await import('./index.js')).sort(), [
11+
assert.deepEqual(Object.keys(await import('mdast-util-directive')).sort(), [
1212
'directiveFromMarkdown',
1313
'directiveToMarkdown'
1414
])

0 commit comments

Comments
 (0)