Skip to content

Commit

Permalink
Change to use exports
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Sep 25, 2023
1 parent 15e3342 commit b46d8f5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 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
6 changes: 3 additions & 3 deletions test/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* @typedef {import('../index.js').Options} Options
* @typedef {import('remark-usage').Options} Options
*/

/**
Expand All @@ -16,11 +16,11 @@ import fs from 'node:fs/promises'
import test from 'node:test'
import {fileURLToPath} from 'node:url'
import {remark} from 'remark'
import remarkUsage from '../index.js'
import remarkUsage from 'remark-usage'

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

0 comments on commit b46d8f5

Please sign in to comment.