File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
Expand file tree Collapse file tree 2 files changed +6
-6
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 11import assert from 'node:assert/strict'
22import test from 'node:test'
3- import { scriptSupporting } from './index.js '
3+ import { scriptSupporting } from 'hast-util-script-supporting '
44
55test ( 'scriptSupporting' , async function ( t ) {
66 await t . test ( 'should expose the public api' , async function ( ) {
7- assert . deepEqual ( Object . keys ( await import ( './index.js' ) ) . sort ( ) , [
8- 'scriptSupporting'
9- ] )
7+ assert . deepEqual (
8+ Object . keys ( await import ( 'hast-util-script-supporting' ) ) . sort ( ) ,
9+ [ 'scriptSupporting' ]
10+ )
1011 } )
1112
1213 await t . test ( 'should return `false` without node' , async function ( ) {
You can’t perform that action at this time.
0 commit comments