Skip to content

Commit f91a1c2

Browse files
committed
Change to use export map
1 parent 9c291ca commit f91a1c2

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

index.test-d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type {Content, Heading, Paragraph, Root} from 'mdast'
22
import {expectAssignable, expectNotType, expectType} from 'tsd'
33
import type {Node, Parent} from 'unist'
4-
import {convert, is} from './index.js'
4+
import {convert, is} from 'unist-util-is'
55

66
// # Setup
77

package.json

Lines changed: 3 additions & 3 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",
@@ -91,7 +90,8 @@
9190
],
9291
"rules": {
9392
"@typescript-eslint/consistent-type-definitions": "off",
94-
"@typescript-eslint/no-unnecessary-type-arguments": "off"
93+
"@typescript-eslint/no-unnecessary-type-arguments": "off",
94+
"import/no-extraneous-dependencies": "off"
9595
}
9696
}
9797
],

test/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55

66
import assert from 'node:assert/strict'
77
import test from 'node:test'
8-
import {is} from '../index.js'
8+
import {is} from 'unist-util-is'
99

1010
test('is', async function (t) {
1111
await t.test('should expose the public api', async function () {
12-
assert.deepEqual(Object.keys(await import('../index.js')).sort(), [
12+
assert.deepEqual(Object.keys(await import('unist-util-is')).sort(), [
1313
'convert',
1414
'is'
1515
])

0 commit comments

Comments
 (0)