File tree 2 files changed +3
-4
lines changed
2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 24
24
],
25
25
"sideEffects" : false ,
26
26
"type" : " module" ,
27
- "main" : " index.js" ,
28
- "types" : " index.d.ts" ,
27
+ "exports" : " ./index.js" ,
29
28
"files" : [
30
29
" lib/" ,
31
30
" 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
- import { pointEnd , pointStart , position } from './index.js '
3
+ import { pointEnd , pointStart , position } from 'unist-util-position '
4
4
5
5
const properties = {
6
6
type : 'a' ,
@@ -18,7 +18,7 @@ const noPosition = {type: 'd'}
18
18
19
19
test ( 'core' , async function ( t ) {
20
20
await t . test ( 'should expose the public api' , async function ( ) {
21
- assert . deepEqual ( Object . keys ( await import ( './index.js ' ) ) . sort ( ) , [
21
+ assert . deepEqual ( Object . keys ( await import ( 'unist-util-position ' ) ) . sort ( ) , [
22
22
'pointEnd' ,
23
23
'pointStart' ,
24
24
'position'
You can’t perform that action at this time.
0 commit comments