Skip to content

Commit fda0351

Browse files
committed
Change to use export map
1 parent 980a26c commit fda0351

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
@@ -24,8 +24,7 @@
2424
],
2525
"sideEffects": false,
2626
"type": "module",
27-
"main": "index.js",
28-
"types": "index.d.ts",
27+
"exports": "./index.js",
2928
"files": [
3029
"lib/",
3130
"index.d.ts",

test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import assert from 'node:assert/strict'
22
import test from 'node:test'
3-
import {pointEnd, pointStart, position} from './index.js'
3+
import {pointEnd, pointStart, position} from 'unist-util-position'
44

55
const properties = {
66
type: 'a',
@@ -18,7 +18,7 @@ const noPosition = {type: 'd'}
1818

1919
test('core', async function (t) {
2020
await t.test('should expose the public api', async function () {
21-
assert.deepEqual(Object.keys(await import('./index.js')).sort(), [
21+
assert.deepEqual(Object.keys(await import('unist-util-position')).sort(), [
2222
'pointEnd',
2323
'pointStart',
2424
'position'

0 commit comments

Comments
 (0)