File tree Expand file tree Collapse file tree 5 files changed +6
-7
lines changed Expand file tree Collapse file tree 5 files changed +6
-7
lines changed Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff line change 11import assert from 'node:assert/strict'
22import test from 'node:test'
33import { u } from 'unist-builder'
4- import { selectAll } from '../index.js '
4+ import { selectAll } from 'unist-util-select '
55
66test ( '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'
Original file line number Diff line number Diff line change 55import assert from 'node:assert/strict'
66import test from 'node:test'
77import { u } from 'unist-builder'
8- import { matches } from '../index.js '
8+ import { matches } from 'unist-util-select '
99
1010test ( 'select.matches()' , async function ( t ) {
1111 await t . test ( 'should work (1)' , async function ( ) {
Original file line number Diff line number Diff line change 11import assert from 'node:assert/strict'
22import test from 'node:test'
33import { u } from 'unist-builder'
4- import { selectAll } from '../index.js '
4+ import { selectAll } from 'unist-util-select '
55
66test ( 'select.selectAll()' , async function ( t ) {
77 await t . test ( 'invalid selectors' , async function ( t ) {
Original file line number Diff line number Diff line change 11import assert from 'node:assert/strict'
22import test from 'node:test'
33import { u } from 'unist-builder'
4- import { select } from '../index.js '
4+ import { select } from 'unist-util-select '
55
66test ( 'select.select()' , async function ( t ) {
77 await t . test ( 'invalid selectors' , async function ( t ) {
You can’t perform that action at this time.
0 commit comments