Skip to content

Commit 364a466

Browse files
committed
Change to use exports
1 parent b42bf68 commit 364a466

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
@@ -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/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* @typedef {import('../index.js').Plugin} Plugin
2+
* @typedef {import('esast-util-from-js').Plugin} Plugin
33
*/
44

55
import assert from 'node:assert/strict'
@@ -8,11 +8,11 @@ import test from 'node:test'
88
import jsx from 'acorn-jsx'
99
// @ts-expect-error: untyped.
1010
import stage3 from 'acorn-stage3'
11-
import {fromJs} from '../index.js'
11+
import {fromJs} from 'esast-util-from-js'
1212

1313
test('fromJs', async function (t) {
1414
await t.test('should expose the public api', async function () {
15-
assert.deepEqual(Object.keys(await import('../index.js')).sort(), [
15+
assert.deepEqual(Object.keys(await import('esast-util-from-js')).sort(), [
1616
'fromJs'
1717
])
1818
})

0 commit comments

Comments
 (0)