File tree Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 11import type { Heading , Paragraph , Root } from 'mdast'
22import { expectError , expectType } from 'tsd'
33import type { Node } from 'unist'
4- import { filter } from './index.js '
4+ import { filter } from 'unist-util-filter '
55
66const root : Root = { type : 'root' , children : [ ] }
77/* eslint-disable @typescript-eslint/consistent-type-assertions */
Original file line number Diff line number Diff line change 2626 ],
2727 "sideEffects" : false ,
2828 "type" : " module" ,
29- "main" : " index.js" ,
30- "types" : " index.d.ts" ,
29+ "exports" : " ./index.js" ,
3130 "files" : [
3231 " lib/" ,
3332 " index.d.ts" ,
Original file line number Diff line number Diff line change 66import assert from 'node:assert/strict'
77import test from 'node:test'
88import { u } from 'unist-builder'
9- import { filter } from './index.js '
9+ import { filter } from 'unist-util-filter '
1010
1111test ( 'filter' , async function ( t ) {
1212 await t . test ( 'should expose the public api' , async function ( ) {
13- assert . deepEqual ( Object . keys ( await import ( './index.js' ) ) . sort ( ) , [ 'filter' ] )
13+ assert . deepEqual ( Object . keys ( await import ( 'unist-util-filter' ) ) . sort ( ) , [
14+ 'filter'
15+ ] )
1416 } )
1517
1618 await t . test (
You can’t perform that action at this time.
0 commit comments