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 5, 2023
1 parent 038c164 commit 63dcd08
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions package.json
Expand Up @@ -28,8 +28,10 @@
],
"sideEffects": false,
"type": "module",
"main": "index.js",
"types": "index.d.ts",
"exports": {
"types": "./index.d.ts",
"default": "./index.js"
},
"files": [
"lib/",
"index.d.ts",
Expand Down
4 changes: 2 additions & 2 deletions test.js
@@ -1,11 +1,11 @@
import assert from 'node:assert/strict'
import test from 'node:test'
import {VFile} from 'vfile'
import {location} from './index.js'
import {location} from 'vfile-location'

test('location', async function () {
assert.deepEqual(
Object.keys(await import('./index.js')).sort(),
Object.keys(await import('vfile-location')).sort(),
['location'],
'should expose the public api'
)
Expand Down

0 comments on commit 63dcd08

Please sign in to comment.