File tree 2 files changed +3
-5
lines changed
2 files changed +3
-5
lines changed 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 1
1
/**
2
- * @typedef {import('hast').Root } Root
3
2
* @typedef {import('./test-types.js') } DoNotTouchAsThisImportIncludesCustomNodesInTree
4
3
*/
5
4
6
5
import assert from 'node:assert/strict'
7
6
import test from 'node:test'
8
7
import { h , s } from 'hastscript'
8
+ import { raw } from 'hast-util-raw'
9
9
import { toHtml } from 'hast-util-to-html'
10
10
import { fromMarkdown } from 'mdast-util-from-markdown'
11
11
import { toHast } from 'mdast-util-to-hast'
12
12
import { u } from 'unist-builder'
13
13
import { VFile } from 'vfile'
14
- import { raw } from './index.js'
15
14
16
15
test ( 'raw' , async function ( t ) {
17
16
await t . test ( 'should expose the public api' , async function ( ) {
18
- assert . deepEqual ( Object . keys ( await import ( './index.js ' ) ) . sort ( ) , [ 'raw' ] )
17
+ assert . deepEqual ( Object . keys ( await import ( 'hast-util-raw ' ) ) . sort ( ) , [ 'raw' ] )
19
18
} )
20
19
21
20
await t . test ( 'should throw for unknown nodes' , async function ( ) {
You can’t perform that action at this time.
0 commit comments