File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 25
25
],
26
26
"sideEffects" : false ,
27
27
"type" : " module" ,
28
- "main" : " index.js" ,
29
- "types" : " index.d.ts" ,
28
+ "exports" : " ./index.js" ,
30
29
"files" : [
31
30
" lib/" ,
32
31
" 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 { embedded } from './index.js'
4
- import * as mod from './index.js'
3
+ import { embedded } from 'hast-util-embedded'
5
4
6
5
test ( 'embedded' , async function ( t ) {
7
6
await t . test ( 'should expose the public api' , async function ( ) {
8
- assert . deepEqual ( Object . keys ( mod ) . sort ( ) , [ 'embedded' ] )
7
+ assert . deepEqual ( Object . keys ( await import ( 'hast-util-embedded' ) ) . sort ( ) , [
8
+ 'embedded'
9
+ ] )
9
10
} )
10
11
11
12
await t . test ( 'should return `false` without node' , async function ( ) {
You can’t perform that action at this time.
0 commit comments