This repository was archived by the owner on Aug 20, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +24
-9
lines changed Expand file tree Collapse file tree 4 files changed +24
-9
lines changed Original file line number Diff line number Diff line change 5
5
import KEYS from "./visitor-keys.js" ;
6
6
7
7
/**
8
- * @typedef {{ readonly [type: string]: ReadonlyArray<string> } } VisitorKeys
8
+ * @typedef {import('./visitor-keys.js').VisitorKeys } VisitorKeys
9
9
*/
10
10
11
11
// List to ignore keys.
Original file line number Diff line number Diff line change 1
1
/**
2
- * @typedef {import('./index.js').VisitorKeys } VisitorKeys
2
+ * @typedef {{ readonly [type: string]: ReadonlyArray<string> } } VisitorKeys
3
3
*/
4
4
5
5
/**
Original file line number Diff line number Diff line change 19
19
" dist/index.d.ts" ,
20
20
" dist/visitor-keys.d.ts" ,
21
21
" dist/eslint-visitor-keys.cjs" ,
22
+ " dist/eslint-visitor-keys.d.cts" ,
22
23
" lib"
23
24
],
24
25
"engines" : {
40
41
"mocha" : " ^9.2.1" ,
41
42
"opener" : " ^1.5.2" ,
42
43
"rollup" : " ^2.70.0" ,
44
+ "rollup-plugin-dts" : " ^4.2.3" ,
43
45
"tsd" : " ^0.19.1" ,
44
46
"typescript" : " ^4.6.2"
45
47
},
Original file line number Diff line number Diff line change 1
- export default {
2
- input : "./lib/index.js" ,
3
- treeshake : false ,
4
- output : {
5
- format : "cjs" ,
6
- file : "dist/eslint-visitor-keys.cjs"
1
+ import dts from "rollup-plugin-dts" ;
2
+
3
+ export default [
4
+ {
5
+ input : "./lib/index.js" ,
6
+ treeshake : false ,
7
+ output : {
8
+ format : "cjs" ,
9
+ file : "dist/eslint-visitor-keys.cjs"
10
+ }
11
+ } ,
12
+ {
13
+ plugins : [ dts ( ) ] ,
14
+ input : "./lib/index.js" ,
15
+ treeshake : false ,
16
+ output : {
17
+ format : "cjs" ,
18
+ file : "dist/eslint-visitor-keys.d.cts"
19
+ }
7
20
}
8
- } ;
21
+ ] ;
You can’t perform that action at this time.
0 commit comments