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 Jun 30, 2023
1 parent 8a9e59c commit 6e4dc3c
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 7 deletions.
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,7 @@
],
"sideEffects": false,
"type": "module",
"main": "index.js",
"types": "index.d.ts",
"exports": "./index.js",
"files": [
"lib/",
"index.d.ts",
Expand Down
4 changes: 2 additions & 2 deletions test/all.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import assert from 'node:assert/strict'
import test from 'node:test'
import {u} from 'unist-builder'
import {selectAll} from '../index.js'
import {selectAll} from 'unist-util-select'

test('all together now', 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('unist-util-select')).sort(), [
'matches',
'select',
'selectAll'
Expand Down
2 changes: 1 addition & 1 deletion test/matches.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import assert from 'node:assert/strict'
import test from 'node:test'
import {u} from 'unist-builder'
import {matches} from '../index.js'
import {matches} from 'unist-util-select'

test('select.matches()', async function (t) {
await t.test('should work (1)', async function () {
Expand Down
2 changes: 1 addition & 1 deletion test/select-all.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import assert from 'node:assert/strict'
import test from 'node:test'
import {u} from 'unist-builder'
import {selectAll} from '../index.js'
import {selectAll} from 'unist-util-select'

test('select.selectAll()', async function (t) {
await t.test('invalid selectors', async function (t) {
Expand Down
2 changes: 1 addition & 1 deletion test/select.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import assert from 'node:assert/strict'
import test from 'node:test'
import {u} from 'unist-builder'
import {select} from '../index.js'
import {select} from 'unist-util-select'

test('select.select()', async function (t) {
await t.test('invalid selectors', async function (t) {
Expand Down

0 comments on commit 6e4dc3c

Please sign in to comment.