File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Expand file tree Collapse file tree 2 files changed +3
-5
lines changed 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 11/**
2- * @typedef {import('hast').Root } Root
32 * @typedef {import('./test-types.js') } DoNotTouchAsThisImportIncludesCustomNodesInTree
43 */
54
65import assert from 'node:assert/strict'
76import test from 'node:test'
87import { h , s } from 'hastscript'
8+ import { raw } from 'hast-util-raw'
99import { toHtml } from 'hast-util-to-html'
1010import { fromMarkdown } from 'mdast-util-from-markdown'
1111import { toHast } from 'mdast-util-to-hast'
1212import { u } from 'unist-builder'
1313import { VFile } from 'vfile'
14- import { raw } from './index.js'
1514
1615test ( 'raw' , async function ( t ) {
1716 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' ] )
1918 } )
2019
2120 await t . test ( 'should throw for unknown nodes' , async function ( ) {
You can’t perform that action at this time.
0 commit comments