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 Jul 8, 2023
1 parent 0905cdf commit c0e2278
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 12 deletions.
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@
],
"sideEffects": false,
"type": "module",
"main": "index.js",
"types": "index.d.ts",
"exports": "./index.js",
"files": [
"lib/",
"index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/mismatched/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @typedef {import('mdast').Root} Root
*/

import {zone} from '../../../index.js'
import {zone} from 'mdast-zone'

/**
* @param {Root} tree
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/nodes/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*/

import assert from 'node:assert/strict'
import {zone} from '../../../index.js'
import {zone} from 'mdast-zone'

/**
* @param {Root} tree
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/non-marker/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @typedef {import('mdast').Root} Root
*/

import {zone} from '../../../index.js'
import {zone} from 'mdast-zone'

/**
* @param {Root} tree
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/range-children/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*/

import assert from 'node:assert/strict'
import {zone} from '../../../index.js'
import {zone} from 'mdast-zone'

/**
* @param {Root} tree
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/remove-children/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @typedef {import('mdast').Root} Root
*/

import {zone} from '../../../index.js'
import {zone} from 'mdast-zone'

/**
* @param {Root} tree
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/remove/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @typedef {import('mdast').Root} Root
*/

import {zone} from '../../../index.js'
import {zone} from 'mdast-zone'

/**
* @param {Root} tree
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/replace-children/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @typedef {import('mdast').Root} Root
*/

import {zone} from '../../../index.js'
import {zone} from 'mdast-zone'

/**
* @param {Root} tree
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/replace/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @typedef {import('mdast').Root} Root
*/

import {zone} from '../../../index.js'
import {zone} from 'mdast-zone'

/**
* @param {Root} tree
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/simple/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*/

import assert from 'node:assert/strict'
import {zone} from '../../../index.js'
import {zone} from 'mdast-zone'

/**
* @param {Root} tree
Expand Down
2 changes: 1 addition & 1 deletion test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {toMarkdown} from 'mdast-util-to-markdown'

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

const root = new URL('fixtures/', import.meta.url)
Expand Down

0 comments on commit c0e2278

Please # to comment.