File tree 2 files changed +4
-5
lines changed
2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 28
28
],
29
29
"sideEffects" : false ,
30
30
"type" : " module" ,
31
- "main" : " index.js" ,
32
- "types" : " index.d.ts" ,
31
+ "exports" : " ./index.js" ,
33
32
"files" : [
34
33
" lib/" ,
35
34
" index.d.ts" ,
Original file line number Diff line number Diff line change 1
1
/**
2
- * @typedef {import('../index. js').Plugin } Plugin
2
+ * @typedef {import('esast-util-from- js').Plugin } Plugin
3
3
*/
4
4
5
5
import assert from 'node:assert/strict'
@@ -8,11 +8,11 @@ import test from 'node:test'
8
8
import jsx from 'acorn-jsx'
9
9
// @ts -expect-error: untyped.
10
10
import stage3 from 'acorn-stage3'
11
- import { fromJs } from '../index. js'
11
+ import { fromJs } from 'esast-util-from- js'
12
12
13
13
test ( 'fromJs' , async function ( t ) {
14
14
await t . test ( 'should expose the public api' , async function ( ) {
15
- assert . deepEqual ( Object . keys ( await import ( '../index. js' ) ) . sort ( ) , [
15
+ assert . deepEqual ( Object . keys ( await import ( 'esast-util-from- js' ) ) . sort ( ) , [
16
16
'fromJs'
17
17
] )
18
18
} )
You can’t perform that action at this time.
0 commit comments