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 14, 2023
1 parent 6532621 commit 6ef35a8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 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 All @@ -40,6 +39,7 @@
"devDependencies": {
"@types/node": "^20.0.0",
"c8": "^7.0.0",
"is-buffer": "^2.0.0",
"prettier": "^2.0.0",
"remark-cli": "^11.0.0",
"remark-preset-wooorm": "^9.0.0",
Expand Down
6 changes: 3 additions & 3 deletions test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@ import {Buffer} from 'node:buffer'
import fs from 'node:fs'
import path from 'node:path'
import process from 'node:process'
import {fileURLToPath, URL} from 'node:url'
import {fileURLToPath} from 'node:url'
import test from 'node:test'
import buffer from 'is-buffer'
import {toVFile, read, readSync, write, writeSync} from './index.js'
import {toVFile, read, readSync, write, writeSync} from 'to-vfile'

const join = path.join

const fixture = fs.readFileSync('readme.md', 'utf8')

test('toVFile', async function (t) {
assert.deepEqual(
Object.keys(await import('./index.js')).sort(),
Object.keys(await import('to-vfile')).sort(),
['read', 'readSync', 'toVFile', 'write', 'writeSync'],
'should expose the public api'
)
Expand Down

0 comments on commit 6ef35a8

Please sign in to comment.