diff --git a/package.json b/package.json index 150fb98..feece66 100644 --- a/package.json +++ b/package.json @@ -27,8 +27,7 @@ ], "sideEffects": false, "type": "module", - "main": "index.js", - "types": "index.d.ts", + "exports": "./index.js", "files": [ "lib/", "index.d.ts", diff --git a/test/index.js b/test/index.js index 6acf056..c95d865 100644 --- a/test/index.js +++ b/test/index.js @@ -6,13 +6,13 @@ import assert from 'node:assert/strict' import path from 'node:path' import process from 'node:process' import test from 'node:test' -import {findUp, findUpAll} from '../index.js' +import {findUp, findUpAll} from 'vfile-find-up' const deepest = path.join(process.cwd(), 'test', 'fixture', 'foo', 'bar', 'baz') test('core', async function () { assert.deepEqual( - Object.keys(await import('../index.js')).sort(), + Object.keys(await import('vfile-find-up')).sort(), ['findUp', 'findUpAll'], 'should expose the public api' )