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 11import { expectType } from 'tsd'
22import type { Root } from 'mdast'
3- import { removePosition } from './index.js '
3+ import { removePosition } from 'unist-util-remove-position '
44
55const tree : Root = { type : 'root' , children : [ ] }
66
Original file line number Diff line number Diff line change 2727 ],
2828 "sideEffects" : false ,
2929 "type" : " module" ,
30- "main" : " index.js" ,
31- "types" : " index.d.ts" ,
30+ "exports" : " ./index.js" ,
3231 "files" : [
3332 " lib/" ,
3433 " index.d.ts" ,
Original file line number Diff line number Diff line change @@ -2,13 +2,14 @@ import assert from 'node:assert/strict'
22import test from 'node:test'
33import { fromMarkdown } from 'mdast-util-from-markdown'
44import { u } from 'unist-builder'
5- import { removePosition } from './index.js '
5+ import { removePosition } from 'unist-util-remove-position '
66
77test ( 'removePosition' , async function ( t ) {
88 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+ )
1213 } )
1314
1415 await t . test ( 'should work softly' , async function ( ) {
You can’t perform that action at this time.
0 commit comments