Skip to content

Commit 65ae5cc

Browse files
committed
Change to use exports
1 parent 0150c33 commit 65ae5cc

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

package.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@
2929
],
3030
"sideEffects": false,
3131
"type": "module",
32-
"main": "index.js",
33-
"types": "index.d.ts",
32+
"exports": "./index.js",
3433
"files": [
3534
"lib/",
3635
"index.d.ts",

test/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ import assert from 'node:assert/strict'
66
import test from 'node:test'
77
import {Parser} from 'acorn'
88
import acornJsx from 'acorn-jsx'
9+
import {jsx, toJs} from 'estree-util-to-js'
910
import {SourceMapGenerator} from 'source-map'
10-
import {jsx, toJs} from '../index.js'
1111

1212
test('toJs', async function (t) {
1313
await t.test('should expose the public api', async function () {
14-
assert.deepEqual(Object.keys(await import('../index.js')).sort(), [
14+
assert.deepEqual(Object.keys(await import('estree-util-to-js')).sort(), [
1515
'jsx',
1616
'toJs'
1717
])

0 commit comments

Comments
 (0)