Skip to content

Commit 6e4dc3c

Browse files
committed
Change to use export map
1 parent 8a9e59c commit 6e4dc3c

File tree

5 files changed

+6
-7
lines changed

5 files changed

+6
-7
lines changed

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,7 @@
4040
],
4141
"sideEffects": false,
4242
"type": "module",
43-
"main": "index.js",
44-
"types": "index.d.ts",
43+
"exports": "./index.js",
4544
"files": [
4645
"lib/",
4746
"index.d.ts",

test/all.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import assert from 'node:assert/strict'
22
import test from 'node:test'
33
import {u} from 'unist-builder'
4-
import {selectAll} from '../index.js'
4+
import {selectAll} from 'unist-util-select'
55

66
test('all together now', async function (t) {
77
await t.test('should expose the public api', async function () {
8-
assert.deepEqual(Object.keys(await import('../index.js')).sort(), [
8+
assert.deepEqual(Object.keys(await import('unist-util-select')).sort(), [
99
'matches',
1010
'select',
1111
'selectAll'

test/matches.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import assert from 'node:assert/strict'
66
import test from 'node:test'
77
import {u} from 'unist-builder'
8-
import {matches} from '../index.js'
8+
import {matches} from 'unist-util-select'
99

1010
test('select.matches()', async function (t) {
1111
await t.test('should work (1)', async function () {

test/select-all.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 {u} from 'unist-builder'
4-
import {selectAll} from '../index.js'
4+
import {selectAll} from 'unist-util-select'
55

66
test('select.selectAll()', async function (t) {
77
await t.test('invalid selectors', async function (t) {

test/select.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 {u} from 'unist-builder'
4-
import {select} from '../index.js'
4+
import {select} from 'unist-util-select'
55

66
test('select.select()', async function (t) {
77
await t.test('invalid selectors', async function (t) {

0 commit comments

Comments
 (0)