Skip to content

Commit 9eb0f54

Browse files
committedSep 18, 2023
Change to use exports
1 parent 5715c93 commit 9eb0f54

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed
 

Diff for: ‎package.json

+1-2
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",

Diff for: ‎test/index.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* @typedef {import('mdast').Root} Root
3-
* @typedef {import('../index.js').Options} Options
3+
* @typedef {import('remark-gfm').Options} Options
44
*/
55

66
import assert from 'node:assert/strict'
@@ -9,12 +9,12 @@ import process from 'node:process'
99
import test from 'node:test'
1010
import {isHidden} from 'is-hidden'
1111
import {remark} from 'remark'
12+
import remarkGfm from 'remark-gfm'
1213
import stringWidth from 'string-width'
13-
import remarkGfm from '../index.js'
1414

1515
test('remarkGfm', async function (t) {
1616
await t.test('should expose the public api', async function () {
17-
assert.deepEqual(Object.keys(await import('../index.js')).sort(), [
17+
assert.deepEqual(Object.keys(await import('remark-gfm')).sort(), [
1818
'default'
1919
])
2020
})

0 commit comments

Comments
 (0)
Please sign in to comment.