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 40
40
],
41
41
"sideEffects" : false ,
42
42
"type" : " module" ,
43
- "main" : " index.js" ,
44
- "types" : " index.d.ts" ,
43
+ "exports" : " ./index.js" ,
45
44
"files" : [
46
45
" lib/" ,
47
46
" index.d.ts" ,
Original file line number Diff line number Diff line change 1
1
import assert from 'node:assert/strict'
2
2
import test from 'node:test'
3
3
import { u } from 'unist-builder'
4
- import { selectAll } from '../index.js '
4
+ import { selectAll } from 'unist-util-select '
5
5
6
6
test ( 'all together now' , async function ( t ) {
7
7
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 ( ) , [
9
9
'matches' ,
10
10
'select' ,
11
11
'selectAll'
Original file line number Diff line number Diff line change 5
5
import assert from 'node:assert/strict'
6
6
import test from 'node:test'
7
7
import { u } from 'unist-builder'
8
- import { matches } from '../index.js '
8
+ import { matches } from 'unist-util-select '
9
9
10
10
test ( 'select.matches()' , async function ( t ) {
11
11
await t . test ( 'should work (1)' , async function ( ) {
Original file line number Diff line number Diff line change 1
1
import assert from 'node:assert/strict'
2
2
import test from 'node:test'
3
3
import { u } from 'unist-builder'
4
- import { selectAll } from '../index.js '
4
+ import { selectAll } from 'unist-util-select '
5
5
6
6
test ( 'select.selectAll()' , async function ( t ) {
7
7
await t . test ( 'invalid selectors' , async function ( t ) {
Original file line number Diff line number Diff line change 1
1
import assert from 'node:assert/strict'
2
2
import test from 'node:test'
3
3
import { u } from 'unist-builder'
4
- import { select } from '../index.js '
4
+ import { select } from 'unist-util-select '
5
5
6
6
test ( 'select.select()' , async function ( t ) {
7
7
await t . test ( 'invalid selectors' , async function ( t ) {
You can’t perform that action at this time.
0 commit comments