Skip to content

Commit

Permalink
Change to use export map
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Jun 15, 2023
1 parent db5aa80 commit fa4a004
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@
],
"sideEffects": false,
"type": "module",
"main": "index.js",
"types": "index.d.ts",
"exports": "./index.js",
"files": [
"lib/",
"index.d.ts",
Expand Down
4 changes: 2 additions & 2 deletions test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'
)
Expand Down

0 comments on commit fa4a004

Please sign in to comment.