Skip to content

Commit 38c60c1

Browse files
committed
Change to use exports
1 parent 1aae1da commit 38c60c1

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@
2323
],
2424
"sideEffects": false,
2525
"type": "module",
26-
"main": "index.js",
27-
"types": "index.d.ts",
26+
"exports": "./index.js",
2827
"files": [
2928
"lib/",
3029
"index.d.ts",

test/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ test('args', async function (t) {
3333
.trimEnd()
3434

3535
await t.test('should expose the public api', async function () {
36-
assert.deepEqual(Object.keys(await import('../index.js')).sort(), ['args'])
36+
assert.deepEqual(Object.keys(await import('unified-args')).sort(), ['args'])
3737
})
3838

3939
await t.test('should fail on missing files', async function () {

0 commit comments

Comments
 (0)