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 8, 2023
1 parent 35beb54 commit f8ab16b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
8 changes: 1 addition & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,7 @@
],
"sideEffects": false,
"type": "module",
"main": "index.js",
"types": "index.d.ts",
"files": [
"lib/",
"index.d.ts",
"index.js"
],
"exports": "./index.js",
"dependencies": {
"@types/unist": "^2.0.0",
"unist-util-stringify-position": "^3.0.0"
Expand Down
4 changes: 2 additions & 2 deletions test.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import assert from 'node:assert/strict'
import test from 'node:test'
import {VFileMessage} from './index.js'
import {VFileMessage} from 'vfile-message'

/* eslint-disable no-undef */
/** @type {Error} */
Expand Down Expand Up @@ -43,7 +43,7 @@ try {

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

0 comments on commit f8ab16b

Please sign in to comment.