File tree Expand file tree Collapse file tree 2 files changed +13
-4
lines changed Expand file tree Collapse file tree 2 files changed +13
-4
lines changed Original file line number Diff line number Diff line change
1
+ const lib = require ( "../dist/index.cjs" ) ;
2
+
3
+ module . exports = lib . consola ;
4
+
5
+ for ( const key in lib ) {
6
+ if ( ! ( key in module . exports ) ) {
7
+ module . exports [ key ] = lib [ key ] ;
8
+ }
9
+ }
Original file line number Diff line number Diff line change 19
19
"." : {
20
20
"node" : {
21
21
"types" : " ./dist/index.d.ts" ,
22
- "require" : " ./dist /index.cjs" ,
22
+ "require" : " ./lib /index.cjs" ,
23
23
"import" : " ./dist/index.mjs"
24
24
},
25
25
"default" : {
26
26
"types" : " ./dist/index.browser.d.ts" ,
27
- "require" : " ./dist/index.browser.cjs" ,
28
27
"import" : " ./dist/index.browser.mjs"
29
28
}
30
29
}
31
30
},
32
- "main" : " ./dist /index.cjs" ,
31
+ "main" : " ./lib /index.cjs" ,
33
32
"module" : " ./dist/index.mjs" ,
34
33
"types" : " ./dist/index.d.ts" ,
35
34
"files" : [
36
35
" dist" ,
36
+ " lib" ,
37
37
" types"
38
38
],
39
39
"scripts" : {
68
68
"winston" : " ^3.8.2"
69
69
},
70
70
"packageManager" : " pnpm@8.0.0"
71
- }
71
+ }
You can’t perform that action at this time.
0 commit comments