File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change 28
28
},
29
29
"homepage" : " https://github.com/DukeLuo/eslint-plugin-check-file" ,
30
30
"type" : " module" ,
31
- "main" : " dist/index.js" ,
32
- "module" : " dist/index.es.js" ,
31
+ "main" : " dist/index.cjs" ,
32
+ "module" : " dist/index.js" ,
33
+ "exports" : {
34
+ "." : {
35
+ "require" : " ./dist/index.cjs" ,
36
+ "import" : " ./dist/index.js"
37
+ }
38
+ },
33
39
"files" : [
34
40
" dist"
35
41
],
Original file line number Diff line number Diff line change @@ -10,13 +10,13 @@ export default {
10
10
output : [
11
11
{
12
12
format : 'cjs' ,
13
- file : 'dist/index.js ' ,
13
+ file : 'dist/index.cjs ' ,
14
14
banner :
15
15
'/*! @author Huan Luo <dukeluo@outlook.com> (https://shaiwang.life) */' ,
16
16
} ,
17
17
{
18
18
format : 'es' ,
19
- file : 'dist/index.es. js' ,
19
+ file : 'dist/index.js' ,
20
20
banner :
21
21
'/*! @author Huan Luo <dukeluo@outlook.com> (https://shaiwang.life) */' ,
22
22
} ,
You can’t perform that action at this time.
0 commit comments