File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 29
29
],
30
30
"sideEffects" : false ,
31
31
"type" : " module" ,
32
- "main" : " index.js" ,
33
- "types" : " index.d.ts" ,
32
+ "exports" : " ./index.js" ,
34
33
"files" : [
35
34
" lib/" ,
36
35
" index.d.ts" ,
Original file line number Diff line number Diff line change 6
6
import assert from 'node:assert/strict'
7
7
import test from 'node:test'
8
8
import structuredClone from '@ungap/structured-clone'
9
- import { parents } from './index.js '
9
+ import { parents } from 'unist-util-parents '
10
10
11
11
/** @type {Root } */
12
12
const ast = {
@@ -26,7 +26,7 @@ const ast = {
26
26
27
27
test ( 'parents' , async function ( t ) {
28
28
await t . test ( 'should expose the public api' , async function ( ) {
29
- assert . deepEqual ( Object . keys ( await import ( './index.js ' ) ) . sort ( ) , [
29
+ assert . deepEqual ( Object . keys ( await import ( 'unist-util-parents ' ) ) . sort ( ) , [
30
30
'parents'
31
31
] )
32
32
} )
You can’t perform that action at this time.
0 commit comments