Skip to content

Commit 5a4c67b

Browse files
committed
Change to use exports
1 parent 29fcc5d commit 5a4c67b

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
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.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@
55
import assert from 'node:assert/strict'
66
import test from 'node:test'
77
import stringWidth from 'string-width'
8+
import {gfmTable} from 'micromark-extension-gfm-table'
89
import {fromMarkdown} from 'mdast-util-from-markdown'
10+
import {gfmTableFromMarkdown, gfmTableToMarkdown} from 'mdast-util-gfm-table'
911
import {toMarkdown} from 'mdast-util-to-markdown'
1012
import {removePosition} from 'unist-util-remove-position'
11-
import {gfmTable} from 'micromark-extension-gfm-table'
12-
import {gfmTableFromMarkdown, gfmTableToMarkdown} from './index.js'
1313

1414
test('core', async function (t) {
1515
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('mdast-util-gfm-table')).sort(), [
1717
'gfmTableFromMarkdown',
1818
'gfmTableToMarkdown'
1919
])

0 commit comments

Comments
 (0)