Change to use exports
This commit is contained in:
parent
20c4a6b5e1
commit
733932dd91
2 changed files with 3 additions and 4 deletions
|
@ -26,8 +26,7 @@
|
||||||
],
|
],
|
||||||
"sideEffects": false,
|
"sideEffects": false,
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"main": "index.js",
|
"exports": "./index.js",
|
||||||
"types": "index.d.ts",
|
|
||||||
"files": [
|
"files": [
|
||||||
"lib/",
|
"lib/",
|
||||||
"index.d.ts",
|
"index.d.ts",
|
||||||
|
|
|
@ -8,11 +8,11 @@ import process from 'node:process'
|
||||||
import test from 'node:test'
|
import test from 'node:test'
|
||||||
import {isHidden} from 'is-hidden'
|
import {isHidden} from 'is-hidden'
|
||||||
import {remark} from 'remark'
|
import {remark} from 'remark'
|
||||||
import remarkDirective from '../index.js'
|
import remarkDirective from 'remark-directive'
|
||||||
|
|
||||||
test('remarkDirective', async function (t) {
|
test('remarkDirective', async function (t) {
|
||||||
await t.test('should expose the public api', async function () {
|
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-directive')).sort(), [
|
||||||
'default'
|
'default'
|
||||||
])
|
])
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Reference in a new issue