Skip to content

Commit 33442cc

Browse files
committed
Change to use exports
1 parent 52905eb commit 33442cc

28 files changed

+29
-30
lines changed

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@
2626
],
2727
"sideEffects": false,
2828
"type": "module",
29-
"main": "index.js",
30-
"types": "index.d.ts",
29+
"exports": "./index.js",
3130
"files": [
3231
"lib/",
3332
"index.d.ts",

test/blockquote.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import assert from 'node:assert/strict'
22
import test from 'node:test'
33
import {h} from 'hastscript'
4-
import {toHast} from '../index.js'
4+
import {toHast} from 'mdast-util-to-hast'
55

66
test('blockquote', async function (t) {
77
await t.test(

test/break.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import assert from 'node:assert/strict'
22
import test from 'node:test'
33
import {h} from 'hastscript'
4-
import {toHast} from '../index.js'
4+
import {toHast} from 'mdast-util-to-hast'
55

66
test('break', async function (t) {
77
await t.test('should transform `break` to `br`', async function () {

test/code.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import assert from 'node:assert/strict'
22
import test from 'node:test'
33
import {h} from 'hastscript'
4-
import {toHast} from '../index.js'
4+
import {toHast} from 'mdast-util-to-hast'
55

66
test('code', async function (t) {
77
await t.test(

test/core.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66
import assert from 'node:assert/strict'
77
import test from 'node:test'
88
import {h} from 'hastscript'
9-
import {toHast} from '../index.js'
9+
import {toHast} from 'mdast-util-to-hast'
1010

1111
test('toHast', async function (t) {
1212
await t.test('should expose the public api', async function () {
13-
assert.deepEqual(Object.keys(await import('../index.js')).sort(), [
13+
assert.deepEqual(Object.keys(await import('mdast-util-to-hast')).sort(), [
1414
'defaultFootnoteBackContent',
1515
'defaultFootnoteBackLabel',
1616
'defaultHandlers',

test/definition.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import assert from 'node:assert/strict'
22
import test from 'node:test'
33
import {h} from 'hastscript'
4-
import {toHast} from '../index.js'
4+
import {toHast} from 'mdast-util-to-hast'
55

66
test('definition', async function (t) {
77
await t.test('should ignore `definition`', async function () {

test/delete.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import assert from 'node:assert/strict'
22
import test from 'node:test'
33
import {h} from 'hastscript'
4-
import {toHast} from '../index.js'
4+
import {toHast} from 'mdast-util-to-hast'
55

66
test('delete', async function (t) {
77
await t.test('should transform `delete` to `del`', async function () {

test/emphasis.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import assert from 'node:assert/strict'
22
import test from 'node:test'
33
import {h} from 'hastscript'
4-
import {toHast} from '../index.js'
4+
import {toHast} from 'mdast-util-to-hast'
55

66
test('emphasis', async function (t) {
77
await t.test('should transform `emphasis` to `em`', async function () {

test/footnote-definition.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import assert from 'node:assert/strict'
22
import test from 'node:test'
33
import {h} from 'hastscript'
4-
import {toHast} from '../index.js'
4+
import {toHast} from 'mdast-util-to-hast'
55

66
test('footnoteDefinition', async function (t) {
77
await t.test('should ignore `footnoteDefinition`', async function () {

test/footnote-reference.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import assert from 'node:assert/strict'
22
import test from 'node:test'
33
import {h} from 'hastscript'
4-
import {toHast} from '../index.js'
4+
import {toHast} from 'mdast-util-to-hast'
55

66
test('footnoteReference', async function (t) {
77
await t.test('should render `footnoteReference`s', async function () {

0 commit comments

Comments
 (0)