File tree 3 files changed +6
-5
lines changed
3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 1
1
import type { Heading , Paragraph , Root } from 'mdast'
2
2
import { expectError , expectType } from 'tsd'
3
3
import type { Node } from 'unist'
4
- import { filter } from './index.js '
4
+ import { filter } from 'unist-util-filter '
5
5
6
6
const root : Root = { type : 'root' , children : [ ] }
7
7
/* eslint-disable @typescript-eslint/consistent-type-assertions */
Original file line number Diff line number Diff line change 26
26
],
27
27
"sideEffects" : false ,
28
28
"type" : " module" ,
29
- "main" : " index.js" ,
30
- "types" : " index.d.ts" ,
29
+ "exports" : " ./index.js" ,
31
30
"files" : [
32
31
" lib/" ,
33
32
" index.d.ts" ,
Original file line number Diff line number Diff line change 6
6
import assert from 'node:assert/strict'
7
7
import test from 'node:test'
8
8
import { u } from 'unist-builder'
9
- import { filter } from './index.js '
9
+ import { filter } from 'unist-util-filter '
10
10
11
11
test ( 'filter' , async function ( t ) {
12
12
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
+ ] )
14
16
} )
15
17
16
18
await t . test (
You can’t perform that action at this time.
0 commit comments