Skip to content

Commit 338c2a3

Browse files
committed
Change to use exports
1 parent 3216756 commit 338c2a3

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
@@ -5,13 +5,13 @@
55

66
import assert from 'node:assert/strict'
77
import test from 'node:test'
8+
import {isLiteral} from 'nlcst-is-literal'
89
import {ParseEnglish} from 'parse-english'
910
import {visit} from 'unist-util-visit'
10-
import {isLiteral} from './index.js'
1111

1212
test('isLiteral', 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('nlcst-is-literal')).sort(), [
1515
'isLiteral'
1616
])
1717
})

0 commit comments

Comments
 (0)