File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 1
1
import { expectType } from 'tsd'
2
2
import type { Root } from 'mdast'
3
- import { removePosition } from './index.js '
3
+ import { removePosition } from 'unist-util-remove-position '
4
4
5
5
const tree : Root = { type : 'root' , children : [ ] }
6
6
Original file line number Diff line number Diff line change 27
27
],
28
28
"sideEffects" : false ,
29
29
"type" : " module" ,
30
- "main" : " index.js" ,
31
- "types" : " index.d.ts" ,
30
+ "exports" : " ./index.js" ,
32
31
"files" : [
33
32
" lib/" ,
34
33
" index.d.ts" ,
Original file line number Diff line number Diff line change @@ -2,13 +2,14 @@ import assert from 'node:assert/strict'
2
2
import test from 'node:test'
3
3
import { fromMarkdown } from 'mdast-util-from-markdown'
4
4
import { u } from 'unist-builder'
5
- import { removePosition } from './index.js '
5
+ import { removePosition } from 'unist-util-remove-position '
6
6
7
7
test ( 'removePosition' , async function ( t ) {
8
8
await t . test ( 'should expose the public api' , async function ( ) {
9
- assert . deepEqual ( Object . keys ( await import ( './index.js' ) ) . sort ( ) , [
10
- 'removePosition'
11
- ] )
9
+ assert . deepEqual (
10
+ Object . keys ( await import ( 'unist-util-remove-position' ) ) . sort ( ) ,
11
+ [ 'removePosition' ]
12
+ )
12
13
} )
13
14
14
15
await t . test ( 'should work softly' , async function ( ) {
You can’t perform that action at this time.
0 commit comments