File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 2828 ],
2929 "sideEffects" : false ,
3030 "type" : " module" ,
31- "main" : " index.js" ,
32- "types" : " index.d.ts" ,
31+ "exports" : " ./index.js" ,
3332 "files" : [
3433 " lib/" ,
3534 " 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 { parse } from 'acorn'
4- import { positionFromEstree } from './index.js '
4+ import { positionFromEstree } from 'unist-util-position-from-estree '
55
66test ( 'positionFromEstree' , async function ( t ) {
77 await t . test ( 'should expose the public api' , async function ( ) {
8- assert . deepEqual ( Object . keys ( await import ( './index.js' ) ) . sort ( ) , [
9- 'positionFromEstree'
10- ] )
8+ assert . deepEqual (
9+ Object . keys ( await import ( 'unist-util-position-from-estree' ) ) . sort ( ) ,
10+ [ 'positionFromEstree' ]
11+ )
1112 } )
1213
1314 await t . test ( 'should support a missing node' , async function ( ) {
You can’t perform that action at this time.
0 commit comments